source: rtems/cpukit/libcsupport/src/assocnamebad.c @ 1c6926c1

5
Last change on this file since 1c6926c1 was f97536d, checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48

basdefs.h: Add and use RTEMS_UNUSED

  • Property mode set to 100644
File size: 628 bytes
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
20const char *
21rtems_assoc_name_bad(
22#ifdef RTEMS_DEBUG
23    uint32_t   bad_value
24#else
25    uint32_t   bad_value RTEMS_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.