History

more debug

ZappoMan committed 12 years ago

Commit e0c55be1 parent 97842883 files · +44 −21Browse files

Showing the changes to libraries/shared/src/SharedUtil.cpp (1 of 3 files). Show all

Unified · Split

libraries/shared/src/SharedUtil.cpp+5−5
@@ -71,18 +71,18 @@ void outputBufferBits(unsigned char* buffer, int length, bool withNewLine) { · 70 unmodified lines
71 71
72void outputBits(unsigned char byte, bool withNewLine) {72void 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t