mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
switch back to qDebug
This commit is contained in:
parent
b1a0ed6480
commit
11d7cb64c2
1 changed files with 5 additions and 5 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue