From f1c4ec936c97c4b2f906638180357c8786776316 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 10 Dec 2013 09:26:08 +0100 Subject: lib: print uname information in the version string Signed-off-by: Daniel Vetter --- lib/drmtest.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 61417f7b..943a6cfc 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -45,6 +45,7 @@ #include #include #include +#include #include "drmtest.h" #include "i915_drm.h" @@ -803,11 +804,16 @@ static void check_igt_exit(int sig) static void print_version(void) { + struct utsname uts; + if (list_subtests) return; - fprintf(stdout, "IGT-Version: %s-%s (%s)\n", PACKAGE_VERSION, - IGT_GIT_SHA1, TARGET_CPU_PLATFORM); + uname(&uts); + + fprintf(stdout, "IGT-Version: %s-%s (%s) (%s: %s %s)\n", PACKAGE_VERSION, + IGT_GIT_SHA1, TARGET_CPU_PLATFORM, + uts.sysname, uts.release, uts.machine); } static void print_usage(const char *command_str, const char *help_str, -- cgit v1.2.3