summaryrefslogblamecommitdiffstats
path: root/cpukit/libcsupport/src/assocnamebad.c
blob: c8f96cc0e6559159ed979d718699b3ffd64379e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11






                            



                   
                  
                        
 
                     
                                             







                                                                   
                        




                               
                                                                                 




                                                       
/*
 * assoc.c
 *      rtems assoc routines
 *
 *  $Id$
 */

#if HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems.h>
#include <rtems/assoc.h>

#include <inttypes.h>
#include <stdio.h>              /* sprintf */

/*
 * what to return if a value is not found
 * this is not reentrant, but it really shouldn't be invoked anyway
 */

const char *
rtems_assoc_name_bad(
    uint32_t   bad_value
)
{
#ifdef RTEMS_DEBUG
    static char bad_buffer[32];

    sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else
    static char bad_buffer[32] = "<assoc.c: BAD NAME>";
#endif
    return bad_buffer;
}