Changes in uspace/app/tester/print/print2.c [9d58539:e330da6e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/print/print2.c
r9d58539 re330da6e 53 53 TPRINTF("Real output: [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21); 54 54 55 char ch[12]; 56 ptrdiff_t d, neg_d; 57 58 d = &ch[0] - &ch[12]; 59 neg_d = (unsigned)(-d); 60 TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n"); 61 TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n"); 62 TPRINTF("Real output: [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d); 63 55 64 return NULL; 56 65 }
Note:
See TracChangeset
for help on using the changeset viewer.