Changeset 160 for trunk/src/os2ahci/libc.c
- Timestamp:
- May 31, 2013, 2:03:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/libc.c
r159 r160 405 405 if (debug) { 406 406 /* print the same message to COM1/trace as well */ 407 printf("%s", buf);407 aprintf("%s", buf); 408 408 } 409 409 … … 436 436 /* print hex block */ 437 437 while (len > 0) { 438 printf_nts("%Fp ", buf);438 ntprintf("%Fp ", buf); 439 439 440 440 /* print hex block */ 441 441 for (i = 0; i < 16; i++) { 442 442 if (i < len) { 443 printf_nts("%c%02x", ((i == 8) ? '-' : ' '), buf[i]);443 ntprintf("%c%02x", ((i == 8) ? '-' : ' '), buf[i]); 444 444 } else { 445 printf_nts(" ");445 ntprintf(" "); 446 446 } 447 447 } 448 448 449 449 /* print ASCII block */ 450 printf_nts(" ");450 ntprintf(" "); 451 451 for (i = 0; i < ((len > 16) ? 16 : len); i++) { 452 printf_nts("%c", (buf[i] >= 32 && buf[i] < 128) ? buf[i] : '.');453 } 454 printf_nts("\n");452 ntprintf("%c", (buf[i] >= 32 && buf[i] < 128) ? buf[i] : '.'); 453 } 454 ntprintf("\n"); 455 455 456 456 buf += 16;
Note:
See TracChangeset
for help on using the changeset viewer.