summaryrefslogtreecommitdiffstats
path: root/pcitool/buildinfo.c
blob: 2206c628a8eb5b646e43d42cd61d3b69e3c2a08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>
#include "pcilib/build.h"

void BuildInfo() {
    printf("\n");
#ifdef PCILIB_RELEASE
    printf("Release: %s (revision: %s built on %s in %s)\n", PCILIB_RELEASE, PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
#else /* PCILIB_RELEASE */
    printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
#endif /* PCILIB_RELEASE */
    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);
    }
}