tools: acrn-crashlog: version control patch for binaries

This patch is the version control patch for the binaries
of acrn-crashlog.

Signed-off-by: CHEN Gang <gang.c.chen@intel.com>
Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com>
Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
CHEN Gang
2018-05-16 06:47:04 +00:00
committed by lijinxia
parent 047ffc3f92
commit d4b4c03cde
7 changed files with 65 additions and 7 deletions

View File

@@ -10,6 +10,7 @@
#include <unistd.h>
#include "crash_dump.h"
#include "log_sys.h"
#include "version.h"
/**
* Debugger can work without server when uses "debugger pid" commands to
@@ -33,7 +34,10 @@ int main(int argc, char *argv[])
if (argc > 1) {
if (strcmp(argv[1], "-v") == 0) {
printf("debugger version is 1.0\n");
printf("version is %d.%d-%s, build by %s@%s\n",
UC_MAJOR_VERSION, UC_MINOR_VERSION,
UC_BUILD_VERSION, UC_BUILD_USER,
UC_BUILD_TIME);
return 0;
}
if (strcmp(argv[1], "-h") == 0) {