summaryrefslogtreecommitdiffstats
path: root/pcitool/buildinfo.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-02-04 01:18:33 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-02-04 01:18:33 +0100
commit0e12e11ed817d66ff1e9246a32931e14e4fa6700 (patch)
tree6d2a2f2c6f374a0df45605701a0f736f2993a8a5 /pcitool/buildinfo.c
parent333fe52eb3c7876cfe668dfe0445d34c46989d73 (diff)
downloadpcitool-0e12e11ed817d66ff1e9246a32931e14e4fa6700.tar.gz
pcitool-0e12e11ed817d66ff1e9246a32931e14e4fa6700.tar.bz2
pcitool-0e12e11ed817d66ff1e9246a32931e14e4fa6700.tar.xz
pcitool-0e12e11ed817d66ff1e9246a32931e14e4fa6700.zip
Add build information
Diffstat (limited to 'pcitool/buildinfo.c')
-rw-r--r--pcitool/buildinfo.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcitool/buildinfo.c b/pcitool/buildinfo.c
new file mode 100644
index 0000000..624a934
--- /dev/null
+++ b/pcitool/buildinfo.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <string.h>
+#include "pcilib/build.h"
+
+void BuildInfo() {
+ printf("\n");
+ printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
+ printf("Branch: %s by %s\n", PCILIB_REVISION_BRANCH, PCILIB_REVISION_AUTHOR);
+ if (strlen(PCILIB_REVISION_MODIFICATIONS)) {
+ printf("Modifications: %s - %s\n", PCILIB_LAST_MODIFICATION, PCILIB_REVISION_MODIFICATIONS);
+ }
+}