Changeset 96348adc in mainline for kernel/test/print
- Timestamp:
- 2006-12-12T17:24:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e13972
- Parents:
- 34db7fa
- Location:
- kernel/test/print
- Files:
-
- 2 edited
-
print1.c (modified) (4 diffs)
-
print1.def (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/print/print1.c
r34db7fa r96348adc 31 31 #define BUFFER_SIZE 32 32 32 33 voidtest_print1(void)33 char * test_print1(void) 34 34 { 35 35 int retval; … … 37 37 38 38 char buffer[BUFFER_SIZE]; 39 40 printf(" Printf test \n");41 39 42 40 printf(" text 10.8s %*.*s \n", 5, 3, "text"); … … 52 50 printf("'%#llx' 64bit, '%#x' 32bit, '%#hhx' 8bit, '%#hx' 16bit, unative_t '%#zx'. '%#llx' 64bit and '%s' string.\n", 0x1234567887654321ll, 0x12345678, 0x12, 0x1234, nat, 0x1234567887654321ull, "Lovely string" ); 53 51 54 printf(" Print to NULL '%s'\n", NULL);52 printf(" Print to NULL '%s'\n", NULL); 55 53 56 54 retval = snprintf(buffer, BUFFER_SIZE, "Short text without parameters."); … … 68 66 printf("Result is: '%s', retval = %d\n", buffer, retval); 69 67 70 return ;68 return NULL; 71 69 } -
kernel/test/print/print1.def
r34db7fa r96348adc 1 { 2 "print1", 3 "Printf test", 4 &test_print1, 5 true 6 },
Note:
See TracChangeset
for help on using the changeset viewer.
