summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-23 08:42:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-23 08:42:56 +0000
commit619d165eed414ecbb0e7d22763f1c2f82763f9ec (patch)
treeca311547c75ad755b98d1263dcbc89ca5f87fb00 /src/sna/sna_driver.c
parent684e921a5442c0d7afedd27b7b85719d8195c6ee (diff)
sna: Add a fallback DBG for the git version
In case the version numbering is disabled, like on Arch, include it anyway in the full debug log. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index fc6afad5..ab204f22 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -76,6 +76,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#if HAVE_DOT_GIT
#include "git_version.h"
+#else
+#define git_version "not compiled from git"
#endif
#ifdef TEARFREE
@@ -1463,6 +1465,7 @@ static void describe_sna(ScrnInfoPtr scrn)
"SNA compiled for use with valgrind\n");
VALGRIND_PRINTF("SNA compiled for use with valgrind\n");
#endif
+ DBG(("xf86-video-intel version: %s\n", git_version));
DBG(("pixman version: %s\n", pixman_version_string()));
}