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
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/socket.h>
+#include <sys/utsname.h>
#include <unistd.h>
#include <math.h>
#include <linux/input.h>
}
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
log_extensions(const char *name, const char *extensions)
{
const char *p, *end;
wl_display_init_shm(display);
+ log_uname();
+
weston_log("egl vendor: %s\n",
eglQueryString(ec->display, EGL_VENDOR));
log_extensions("egl extensions",