summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-10-16 17:14:28 +0100
committerEric Engestrom <[email protected]>2017-10-16 18:52:41 +0100
commitb05820621dcc4e45115dcc094c5c265448f095db (patch)
tree11f5b132bf6f32a398a5c7e6ce93492208ade643 /src/gallium/drivers
parent16be271c6ee618e79c7d72ce0d88114aa7aaffb6 (diff)
svga: format the version string like the rest of mesa
All 4 other version strings do it like this. ((Also, double parentheses just look confusing)) Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index ebadf3ed5b1..834a6a56c95 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -49,10 +49,6 @@
/* 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