source: rtems/testsuites/sptests/spprintk/init.c @ 51dc1b3f

4.104.115
Last change on this file since 51dc1b3f was 51dc1b3f, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/09 at 17:44:30

2009-05-14 Joel Sherrill <joel.sherrill@…>

  • spprintk/init.c: More test cases.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  Exercise Printk
3 *
4 *  COPYRIGHT (c) 1989-2009.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <tmacros.h>
15
16rtems_task Init(
17  rtems_task_argument argument
18)
19{
20  void                   *p1;
21  bool                    retbool;
22  Heap_Information_block  info;
23
24  printk( "\n\n*** TEST PRINTK ***\n" );
25
26  printk( "bad format -- %%q in parentheses (%q)\n" );
27
28  printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
29
30  printk( "%%O octal upper case 16 -- %O\n", 16 );
31  printk( "%%o octal lower case of 16 -- %O\n", 16 );
32  printk( "%%I of 16 -- %I\n", 16 );
33  printk( "%%i of 16 -- %i\n", 16 );
34  printk( "%%D of 16 -- %D\n", 16 );
35  printk( "%%d of 16 -- %d\n", 16 );
36  printk( "%%U of 16 -- %U\n", 16 );
37  printk( "%%u of 16 -- %u\n", 16 );
38  printk( "%%X of 16 -- %X\n", 16 );
39  printk( "%%x of 16 -- %x\n", 16 );
40  printk( "%%p of 0x1234 -- %p\n", (void *)0x1234 );
41  printk( "%%s of Mary Had a Little Lamb -- (%s)\n",
42          "Mary Had a Little Lamb" );
43  printk( "%%s of NULL -- (%s)\n", NULL );
44
45  printk( "*** END OF TEST PRINTK ***" );
46  rtems_test_exit( 0 );
47}
48
49/* configuration information */
50
51#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
52
53#define CONFIGURE_MAXIMUM_TASKS           1
54
55#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
56
57#define CONFIGURE_INIT
58
59#include <rtems/confdefs.h>
60
Note: See TracBrowser for help on using the repository browser.