From d9d93745cd2efcdfca8f82d798e61e0ee70cef5c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Feb 2014 02:28:54 +0100 Subject: hostnamectl: should the sanitized arch, not the native uname() one --- src/hostname/hostnamectl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/hostname') diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index afbf37db51..e455249e9e 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -39,6 +39,7 @@ #include "strv.h" #include "sd-id128.h" #include "virt.h" +#include "architecture.h" #include "fileio.h" static bool arg_ask_password = true; @@ -121,7 +122,9 @@ static void print_status_info(StatusInfo *i) { assert_se(uname(&u) >= 0); printf(" Kernel: %s %s\n" - " Architecture: %s\n", u.sysname, u.release, u.machine); + " Architecture: %s\n", + u.sysname, u.release, + architecture_to_string(uname_architecture())); } -- cgit v1.2.3-54-g00ecf