aboutsummaryrefslogtreecommitdiff
path: root/libutil/op_version.c
blob: 99a844e42ac65837cb4ca961d8e0dafad14951fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * @file op_version.c
 * output version string
 *
 * @remark Copyright 2003 OProfile authors
 * @remark Read the file COPYING
 *
 * @author John Levon
 * @author Philippe Elie
 */

#include <stdio.h>
#include <stdlib.h>

#include "op_version.h"
#include "config.h"

void show_version(char const * app_name)
{
	/* Do not change the version format: it is documented in html doc */
	printf("%s: " PACKAGE " " VERSION " compiled on "
	       __DATE__ " " __TIME__ "\n", app_name);
	exit(EXIT_SUCCESS);
}