compositor: Print uname information to log
It is useful to have relevant information about the host system. Example: [..] OS: Linux, 3.0.0-13-generic, #22-Ubuntu SMP Wed Nov 2 13:25:36 UTC 2011, i686
This commit is contained in:
committed by
Kristian Høgsberg
parent
b9e513c678
commit
f12c2879c6
@@ -38,6 +38,7 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
@@ -2883,6 +2884,17 @@ compositor_bind(struct wl_client *client,
|
|||||||
&compositor_interface, id, compositor);
|
&compositor_interface, id, compositor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
log_uname(void)
|
||||||
|
{
|
||||||
|
struct utsname usys;
|
||||||
|
|
||||||
|
uname(&usys);
|
||||||
|
|
||||||
|
weston_log("OS: %s, %s, %s, %s\n", usys.sysname, usys.release,
|
||||||
|
usys.version, usys.machine);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
log_extensions(const char *name, const char *extensions)
|
log_extensions(const char *name, const char *extensions)
|
||||||
{
|
{
|
||||||
@@ -2943,6 +2955,8 @@ weston_compositor_init(struct weston_compositor *ec,
|
|||||||
|
|
||||||
wl_display_init_shm(display);
|
wl_display_init_shm(display);
|
||||||
|
|
||||||
|
log_uname();
|
||||||
|
|
||||||
weston_log("egl vendor: %s\n",
|
weston_log("egl vendor: %s\n",
|
||||||
eglQueryString(ec->display, EGL_VENDOR));
|
eglQueryString(ec->display, EGL_VENDOR));
|
||||||
log_extensions("egl extensions",
|
log_extensions("egl extensions",
|
||||||
|
|||||||
Reference in New Issue
Block a user