aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-09 18:35:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-09 18:35:21 +0000
commit7fb2da3cf91c793fda3793f4d023f2f0387cf9cb (patch)
treed8fb6052c173a4d9d46f2251f225a5c41acf8292
parentreadme: fix mastodon link (diff)
main: log architecture at startup
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index d662cd72..210179d3 100644
--- a/main.c
+++ b/main.c
@@ -11,6 +11,7 @@
#include <sys/types.h>
#include <sys/sysinfo.h>
+#include <sys/utsname.h>
#include <fcntl.h>
#include <fcft/fcft.h>
@@ -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);