svga: format the version string like the rest of mesa
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 16 Oct 2017 16:14:28 +0000 (17:14 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Mon, 16 Oct 2017 17:52:41 +0000 (18:52 +0100)
All 4 other version strings do it like this.
((Also, double parentheses just look confusing))

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index ebadf3ed5b1035c9cd7d7bced5106438dcbe8285..834a6a56c9598aeec8c48d0d2ba6900846cd247c 100644 (file)
 /* NOTE: this constant may get moved into a svga3d*.h header file */
 #define SVGA3D_DX_MAX_RESOURCE_SIZE (128 * 1024 * 1024)
 
-#ifndef MESA_GIT_SHA1
-#define MESA_GIT_SHA1 "(unknown git revision)"
-#endif
-
 #ifdef DEBUG
 int SVGA_DEBUG = 0;
 
@@ -984,7 +980,11 @@ init_logging(struct pipe_screen *screen)
    svga_host_log(host_log);
 
    util_snprintf(host_log, sizeof(host_log) - strlen(log_prefix),
-                 "%s%s (%s)", log_prefix, PACKAGE_VERSION, MESA_GIT_SHA1);
+                 "%s%s"
+#ifdef MESA_GIT_SHA1
+                 " (" MESA_GIT_SHA1 ")"
+#endif
+                 , log_prefix, PACKAGE_VERSION);
    svga_host_log(host_log);
 
    /* If the SVGA_EXTRA_LOGGING env var is set, log the process's command