summaryrefslogtreecommitdiffstats
path: root/driver/base.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-02-04 02:13:02 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-02-04 02:13:02 +0100
commit4f5185b37980bdf962ff7058e9f8fbb06098386c (patch)
treecad958462854e1b72cd838a3aed4de1224768bd4 /driver/base.c
parentcabe489a2e8e2ee7619924e447221177f4562962 (diff)
downloadpcitool-4f5185b37980bdf962ff7058e9f8fbb06098386c.tar.gz
pcitool-4f5185b37980bdf962ff7058e9f8fbb06098386c.tar.bz2
pcitool-4f5185b37980bdf962ff7058e9f8fbb06098386c.tar.xz
pcitool-4f5185b37980bdf962ff7058e9f8fbb06098386c.zip
Report information about driver revision and build
Diffstat (limited to 'driver/base.c')
-rw-r--r--driver/base.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/driver/base.c b/driver/base.c
index 2768f9e..bc9ab98 100644
--- a/driver/base.c
+++ b/driver/base.c
@@ -164,6 +164,8 @@
#include <linux/interrupt.h>
#include <linux/wait.h>
+#include "../pcilib/version.h"
+
/* Configuration for the driver (what should be compiled in, module name, etc...) */
#include "config.h"
@@ -190,6 +192,8 @@
#include "ioctl.h"
+#include "build.h"
+
/*************************************************************************/
/* Module device table associated with this driver */
MODULE_DEVICE_TABLE(pci, pcidriver_ids);
@@ -240,7 +244,12 @@ static int __init pcidriver_init(void)
goto init_pcireg_fail;
}
- mod_info("Module loaded\n");
+ mod_info("pcidriver %u.%u.%u loaded\n", PCILIB_VERSION_GET_MAJOR(PCILIB_VERSION), PCILIB_VERSION_GET_MINOR(PCILIB_VERSION), PCILIB_VERSION_GET_MICRO(PCILIB_VERSION));
+ mod_info("%s\n", PCIDRIVER_BUILD);
+ mod_info("%s\n", PCIDRIVER_REVISION);
+ if (strlen(PCIDRIVER_CHANGES)) {
+ mod_info("Extra changes - %s\n", PCIDRIVER_CHANGES);
+ }
return 0;