summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/assoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/assoc.c')
-rw-r--r--c/src/lib/libc/assoc.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/c/src/lib/libc/assoc.c b/c/src/lib/libc/assoc.c
index 74387a8c5b..5a24bd43a7 100644
--- a/c/src/lib/libc/assoc.c
+++ b/c/src/lib/libc/assoc.c
@@ -8,7 +8,6 @@
#include <rtems.h>
#include "assoc.h"
-#include <stdio.h> /* sprintf */
#include <string.h> /* strcat, strcmp */
#define STREQ(a,b) (strcmp((a), (b)) == 0)
@@ -135,20 +134,11 @@ rtems_assoc_local_by_name(
* this is not reentrant, but it really shouldn't be invoked anyway
*/
-const char *
-rtems_assoc_name_bad(
+const char *rtems_assoc_name_bad(
unsigned32 bad_value
-)
-{
-#ifdef RTEMS_DEBUG
- static char bad_buffer[32];
-
- sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value);
-#else
- static char bad_buffer[32] = "<assoc.c: BAD NAME>";
-#endif
- return bad_buffer;
-}
+);
+
+/* body in separate file to reduce dependency on printf */
const char *