summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/utsname.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-12 06:37:01 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-13 08:22:58 +0100
commita00dff42cfdf201abe15829baeeb2b6341a0426b (patch)
treec155002e1d0b91337e2c60a237c114a998aa605f /cpukit/libcsupport/src/utsname.c
parentconfig: CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE (diff)
downloadrtems-a00dff42cfdf201abe15829baeeb2b6341a0426b.tar.bz2
rtems: Add and use rtems_object_get_local_node()
Update #3841.
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/utsname.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/utsname.c b/cpukit/libcsupport/src/utsname.c
index 8cdd4be536..57ed914aad 100644
--- a/cpukit/libcsupport/src/utsname.c
+++ b/cpukit/libcsupport/src/utsname.c
@@ -23,7 +23,7 @@
#include <sys/utsname.h>
#include <inttypes.h>
-#include <rtems/score/objectimpl.h>
+#include <rtems.h>
#include <rtems/seterr.h>
/*
@@ -47,7 +47,11 @@ int uname(
strncpy( name->sysname, "RTEMS", sizeof(name->sysname) );
- snprintf( name->nodename, sizeof(name->nodename), "Node %" PRId16, _Objects_Local_node );
+ snprintf(
+ name->nodename,
+ sizeof(name->nodename),
+ "Node %" PRId16, rtems_object_get_local_node()
+ );
strncpy( name->release, RTEMS_VERSION, sizeof(name->release) );