summaryrefslogtreecommitdiffstats
path: root/pcitool/buildinfo.c
diff options
context:
space:
mode:
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);
+ }
+}