The Android Open Source Project | 10e23ee | 2009-03-03 19:30:30 -0800 | [diff] [blame] | 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 | |
| 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 | } |