Permalink
Browse files

Output the driver date to the logs on startup.

  • Loading branch information...
1 parent 2f1d14f commit f9ba29a07581ede8c409b0eb8b549db3b446f490 Stephane Marchesin committed Dec 27, 2006
Showing with 4 additions and 0 deletions.
  1. +3 −0 configure.ac
  2. +1 −0 src/nv_driver.c
View
@@ -35,6 +35,9 @@ AC_DEFINE_UNQUOTED([NV_MINOR_VERSION],
AC_DEFINE_UNQUOTED([NV_PATCHLEVEL],
[$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]]\.[[0-9]]\.\([[0-9]]\)/\1/')],
[Patch version])
+AC_DEFINE_UNQUOTED([NV_DRIVER_DATE],
+ [$(echo -n \";git-log |head -3|tail -1|tr -d '\n';echo -n \")],
+ [Driver date])
AC_CONFIG_SRCDIR([Makefile.am])
AM_CONFIG_HEADER([config.h])
View
@@ -630,6 +630,7 @@ NVAvailableOptions(int chipid, int busid)
static void
NVIdentify(int flags)
{
+ xf86DrvMsg(0, X_INFO, NV_NAME " driver " NV_DRIVER_DATE);
xf86PrintChipsets(NV_NAME, "driver for NVIDIA chipsets", NVKnownChipsets);
}

0 comments on commit f9ba29a

Please sign in to comment.