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 | |
---|
16 | rtems_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 | |
---|