diff options
author | Wanlong Gao <wanlong.gao@gmail.com> | 2011-12-17 22:43:08 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:50 +0100 |
commit | ee8b14567e34eb009af2faca37b4a683bd23a2c9 (patch) | |
tree | 769f06d49caa20cfb7dcc52603273276cbaf4168 /builtin-help.c | |
parent | 8d2ff5da21a87617d8c0646914293b47f333cbc4 (diff) | |
download | kvmtool-ee8b14567e34eb009af2faca37b4a683bd23a2c9.tar.gz |
kvm tools: change the binary name from kvm to lkvm in print message
Introduce a new macro KVM_BINARY_NAME for the binary name of kvm tools,
also for future using in printing command messages like these.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'builtin-help.c')
-rw-r--r-- | builtin-help.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin-help.c b/builtin-help.c index d02e8394..5970fb74 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -7,6 +7,7 @@ #include <kvm/util.h> #include <kvm/kvm-cmd.h> #include <kvm/builtin-help.h> +#include <kvm/kvm.h> const char kvm_usage_string[] = @@ -25,7 +26,7 @@ static void list_common_cmds_help(void) longest = strlen(common_cmds[i].name); } - puts(" The most commonly used kvm commands are:"); + puts(" The most commonly used lkvm commands are:"); for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { printf(" %-*s ", longest, common_cmds[i].name); puts(common_cmds[i].help); @@ -34,8 +35,8 @@ static void list_common_cmds_help(void) static void kvm_help(void) { - printf("\n To start a simple non-privileged shell run 'kvm run'\n\n" - "usage: %s\n\n", kvm_usage_string); + printf("\n To start a simple non-privileged shell run '%s run'\n\n" + "usage: %s\n\n", KVM_BINARY_NAME, kvm_usage_string); list_common_cmds_help(); printf("\n %s\n\n", kvm_more_info_string); } |