summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spprintk
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-14 17:44:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-14 17:44:30 +0000
commit51dc1b3fde7461da54a0878841697acf50e5af6e (patch)
tree2f05470f1951b7e4a90c425ac62207bf84507595 /testsuites/sptests/spprintk
parent2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-51dc1b3fde7461da54a0878841697acf50e5af6e.tar.bz2
2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* spprintk/init.c: More test cases.
Diffstat (limited to 'testsuites/sptests/spprintk')
-rw-r--r--testsuites/sptests/spprintk/init.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
index 382be54d79..cd835e12ec 100644
--- a/testsuites/sptests/spprintk/init.c
+++ b/testsuites/sptests/spprintk/init.c
@@ -21,13 +21,28 @@ rtems_task Init(
bool retbool;
Heap_Information_block info;
- puts( "\n\n*** TEST PRINTK ***" );
+ printk( "\n\n*** TEST PRINTK ***\n" );
printk( "bad format -- %%q in parentheses (%q)\n" );
- printk( "bad format -- %%lq in parentheses (%lq)\n" );
-
- puts( "*** END OF TEST PRINTK ***" );
+ printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
+
+ printk( "%%O octal upper case 16 -- %O\n", 16 );
+ printk( "%%o octal lower case of 16 -- %O\n", 16 );
+ printk( "%%I of 16 -- %I\n", 16 );
+ printk( "%%i of 16 -- %i\n", 16 );
+ printk( "%%D of 16 -- %D\n", 16 );
+ printk( "%%d of 16 -- %d\n", 16 );
+ printk( "%%U of 16 -- %U\n", 16 );
+ printk( "%%u of 16 -- %u\n", 16 );
+ printk( "%%X of 16 -- %X\n", 16 );
+ printk( "%%x of 16 -- %x\n", 16 );
+ printk( "%%p of 0x1234 -- %p\n", (void *)0x1234 );
+ printk( "%%s of Mary Had a Little Lamb -- (%s)\n",
+ "Mary Had a Little Lamb" );
+ printk( "%%s of NULL -- (%s)\n", NULL );
+
+ printk( "*** END OF TEST PRINTK ***" );
rtems_test_exit( 0 );
}