mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:56:06 +08:00
38 lines
637 B
C
38 lines
637 B
C
/**
|
|
* @file
|
|
*
|
|
* @brief RTEMS Associate Bad Name
|
|
* @ingroup SET
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#define INSIDE_ASSOC
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/assoc.h>
|
|
|
|
#include <inttypes.h>
|
|
#include <stdio.h> /* sprintf */
|
|
|
|
const char *
|
|
rtems_assoc_name_bad(
|
|
#ifdef RTEMS_DEBUG
|
|
uint32_t bad_value
|
|
#else
|
|
uint32_t bad_value __attribute((unused))
|
|
#endif
|
|
)
|
|
{
|
|
#ifdef RTEMS_DEBUG
|
|
static char bad_buffer[32];
|
|
|
|
sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
|
|
#else
|
|
static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";
|
|
#endif
|
|
return bad_buffer;
|
|
}
|