summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/utsname.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-29 10:34:38 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-29 10:34:38 +0000
commit0f9ff459574cf5fb287fe6d71cb3bbe26e0bc626 (patch)
tree4df1e193b561ea418ad59229e320764f46674250 /cpukit/libcsupport/src/utsname.c
parent2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-0f9ff459574cf5fb287fe6d71cb3bbe26e0bc626.tar.bz2
2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/inttypes.h: #include <sys/_inttypes.h> * libcsupport/src/utsname.c: Don't include sptables.h. Include <inttypes.h>. Use PRId32 instead of "%d".
Diffstat (limited to 'cpukit/libcsupport/src/utsname.c')
-rw-r--r--cpukit/libcsupport/src/utsname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/utsname.c b/cpukit/libcsupport/src/utsname.c
index cc114434bf..6ba6c196c0 100644
--- a/cpukit/libcsupport/src/utsname.c
+++ b/cpukit/libcsupport/src/utsname.c
@@ -15,7 +15,7 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/sptables.h>
+#include <inttypes.h>
#include <rtems/seterr.h>
@@ -41,7 +41,7 @@ int uname(
strcpy( name->sysname, "RTEMS" );
- sprintf( name->nodename, "Node %d", _Objects_Local_node );
+ sprintf( name->nodename, "Node %" PRId32, _Objects_Local_node );
strcpy( name->release, RTEMS_VERSION );