• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * @file op_version.c
3  * output version string
4  *
5  * @remark Copyright 2003 OProfile authors
6  * @remark Read the file COPYING
7  *
8  * @author John Levon
9  * @author Philippe Elie
10  */
11 
12 #include <stdio.h>
13 #include <stdlib.h>
14 
15 #include "op_version.h"
16 #include "config.h"
17 
show_version(char const * app_name)18 void show_version(char const * app_name)
19 {
20 	/* Do not change the version format: it is documented in html doc */
21 	printf("%s: " PACKAGE " " VERSION " compiled on "
22 	       __DATE__ " " __TIME__ "\n", app_name);
23 	exit(EXIT_SUCCESS);
24 }
25