switch back to qDebug

This commit is contained in:
ZappoMan 2013-11-23 13:42:11 -08:00
parent b1a0ed6480
commit 11d7cb64c2

View file

@ -71,18 +71,18 @@ void outputBufferBits(unsigned char* buffer, int length, bool withNewLine) {
void outputBits(unsigned char byte, bool withNewLine) {
if (isalnum(byte)) {
printf("[ %d (%c): ", byte, byte);
qDebug("[ %d (%c): ", byte, byte);
} else {
printf("[ %d (0x%x): ", byte, byte);
qDebug("[ %d (0x%x): ", byte, byte);
}
for (int i = 0; i < 8; i++) {
printf("%d", byte >> (7 - i) & 1);
qDebug("%d", byte >> (7 - i) & 1);
}
printf(" ] ");
qDebug(" ] ");
if (withNewLine) {
printf("\n");
qDebug("\n");
}
}