110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project/** 210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * @file op_version.c 310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * output version string 410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * 510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * @remark Copyright 2003 OProfile authors 610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * @remark Read the file COPYING 710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * 810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * @author John Levon 910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project * @author Philippe Elie 1010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project */ 1110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include <stdio.h> 1310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include <stdlib.h> 1410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1510e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "op_version.h" 1610e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project#include "config.h" 1710e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project 1810e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Projectvoid show_version(char const * app_name) 1910e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project{ 2010e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project /* Do not change the version format: it is documented in html doc */ 2110e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project printf("%s: " PACKAGE " " VERSION " compiled on " 2210e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project __DATE__ " " __TIME__ "\n", app_name); 2310e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project exit(EXIT_SUCCESS); 2410e23eebca4175a8dfe3a788b2bebacb1fcfce54The Android Open Source Project} 25