Changeset e330da6e in mainline for kernel/test/print/print2.c
- Timestamp:
- 2017-03-30T06:33:22Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 907d91a
- Parents:
- 5b46ec8
- git-author:
- Supragya Raj <supragyaraj@…> (2017-03-30 06:33:22)
- git-committer:
- Jakub Jermar <jakub@…> (2017-03-30 06:33:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/print/print2.c
r5b46ec8 re330da6e 52 52 TPRINTF("Real output: [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21); 53 53 54 char ch[12]; 55 ptrdiff_t d, neg_d; 56 57 d = &ch[0] - &ch[12]; 58 neg_d = (unsigned)(-d); 59 TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n"); 60 TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n"); 61 TPRINTF("Real output: [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d); 62 54 63 sysarg_t nat = UINTN_C(0x12345678); 55 64
Note:
See TracChangeset
for help on using the changeset viewer.