4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief RTEMS Associate Bad Name |
---|
5 | * @ingroup SET |
---|
6 | */ |
---|
7 | |
---|
8 | #if HAVE_CONFIG_H |
---|
9 | #include "config.h" |
---|
10 | #endif |
---|
11 | |
---|
12 | #define INSIDE_ASSOC |
---|
13 | |
---|
14 | #include <rtems.h> |
---|
15 | #include <rtems/assoc.h> |
---|
16 | |
---|
17 | #include <inttypes.h> |
---|
18 | #include <stdio.h> /* sprintf */ |
---|
19 | |
---|
20 | const char * |
---|
21 | rtems_assoc_name_bad( |
---|
22 | #ifdef RTEMS_DEBUG |
---|
23 | uint32_t bad_value |
---|
24 | #else |
---|
25 | uint32_t bad_value __attribute((unused)) |
---|
26 | #endif |
---|
27 | ) |
---|
28 | { |
---|
29 | #ifdef RTEMS_DEBUG |
---|
30 | static char bad_buffer[32]; |
---|
31 | |
---|
32 | sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); |
---|
33 | #else |
---|
34 | static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>"; |
---|
35 | #endif |
---|
36 | return bad_buffer; |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.