mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
main: log architecture at startup
This commit is contained in:
parent
8624a8823c
commit
7fb2da3cf9
1 changed files with 9 additions and 0 deletions
9
main.c
9
main.c
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include <fcft/fcft.h>
|
#include <fcft/fcft.h>
|
||||||
|
|
@ -305,6 +306,14 @@ main(int argc, char *const *argv)
|
||||||
|
|
||||||
LOG_INFO("version: %s", FOOT_VERSION);
|
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};
|
struct config conf = {NULL};
|
||||||
if (!config_load(&conf, conf_path)) {
|
if (!config_load(&conf, conf_path)) {
|
||||||
config_free(conf);
|
config_free(conf);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue