From 7fb2da3cf91c793fda3793f4d023f2f0387cf9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 9 Jun 2020 20:35:21 +0200 Subject: [PATCH] main: log architecture at startup --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.c b/main.c index d662cd72..210179d3 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -305,6 +306,14 @@ main(int argc, char *const *argv) LOG_INFO("version: %s", FOOT_VERSION); + { + struct utsname name; + if (uname(&name) < 0) + LOG_ERRNO("uname() failed"); + else + LOG_INFO("arch: %s", name.machine); + } + struct config conf = {NULL}; if (!config_load(&conf, conf_path)) { config_free(conf);