/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcitool/buildinfo.c

  • Committer: Suren A. Chilingaryan
  • Date: 2016-02-04 00:18:33 UTC
  • Revision ID: csa@suren.me-20160204001833-7ovyzg7doj07jzxb
Add build information

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <string.h>
 
3
#include "pcilib/build.h"
 
4
 
 
5
void BuildInfo() {
 
6
    printf("\n");
 
7
    printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
 
8
    printf("Branch: %s by %s\n", PCILIB_REVISION_BRANCH, PCILIB_REVISION_AUTHOR);
 
9
    if (strlen(PCILIB_REVISION_MODIFICATIONS)) {
 
10
        printf("Modifications: %s - %s\n",  PCILIB_LAST_MODIFICATION, PCILIB_REVISION_MODIFICATIONS);
 
11
    }
 
12
}