From 63feedc880d804b21d72f90ef16c60d075961098 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 13 Mar 2007 05:40:14 +0000 Subject: [PATCH] =?UTF-8?q?2007-03-13=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/src/assocnamebad.c: Remove dead code. Use PRI* macros to fix warnings. --- cpukit/ChangeLog | 5 +++++ cpukit/libcsupport/src/assocnamebad.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 7394b8ebaf..60cff42ae2 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-03-13 Ralf Corsépius + + * libcsupport/src/assocnamebad.c: Remove dead code. Use PRI* macros + to fix warnings. + 2007-03-12 Joel Sherrill * score/src/heapallocatealigned.c: Correct license URL and/or fix diff --git a/cpukit/libcsupport/src/assocnamebad.c b/cpukit/libcsupport/src/assocnamebad.c index d1e7191342..c8f96cc0e6 100644 --- a/cpukit/libcsupport/src/assocnamebad.c +++ b/cpukit/libcsupport/src/assocnamebad.c @@ -12,11 +12,8 @@ #include #include +#include #include /* sprintf */ -#include /* strcat, strcmp */ - -#define STREQ(a,b) (strcmp((a), (b)) == 0) -#define rtems_assoc_is_default(ap) ((ap)->name && STREQ(ap->name, RTEMS_ASSOC_DEFAULT_NAME)) /* * what to return if a value is not found @@ -31,7 +28,7 @@ rtems_assoc_name_bad( #ifdef RTEMS_DEBUG static char bad_buffer[32]; - sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); + sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[32] = ""; #endif