Showing the changes to libraries/shared/src/SharedUtil.cpp (1 of 3 files). Show all
Unified · Split
| @@ -71,18 +71,18 @@ void outputBufferBits(unsigned char* buffer, int length, bool withNewLine) { · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | void outputBits(unsigned char byte, bool withNewLine) { | 72 | void outputBits(unsigned char byte, bool withNewLine) { |
| 73 | if (isalnum(byte)) { | 73 | if (isalnum(byte)) { |
| 74 | qDebug("[ %d (%c): ", byte, byte); | 74 | printf("[ %d (%c): ", byte, byte); |
| 75 | } else { | 75 | } else { |
| 76 | qDebug("[ %d (0x%x): ", byte, byte); | 76 | printf("[ %d (0x%x): ", byte, byte); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | for (int i = 0; i < 8; i++) { | 79 | for (int i = 0; i < 8; i++) { |
| 80 | qDebug("%d", byte >> (7 - i) & 1); | 80 | printf("%d", byte >> (7 - i) & 1); |
| 81 | } | 81 | } |
| 82 | qDebug(" ] "); | 82 | printf(" ] "); |
| 83 | 83 | ||
| 84 | if (withNewLine) { | 84 | if (withNewLine) { |
| 85 | qDebug("\n"); | 85 | printf("\n"); |
| 86 | } | 86 | } |
| 87 | } | 87 | } |
| 88 | 88 | ||