Commit 315bc7aa0eb8a0d30a2ffb4f8bfc605575629d61
1 parent
18fdb1c5
Allow qemu-nbd --version to show the application name dynamically, by
Carlo Marcelo Arenas Belon. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4893 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
qemu-nbd.c
... | ... | @@ -68,13 +68,13 @@ static void usage(const char *name) |
68 | 68 | static void version(const char *name) |
69 | 69 | { |
70 | 70 | printf( |
71 | -"qemu-nbd version 0.0.1\n" | |
71 | +"%s version 0.0.1\n" | |
72 | 72 | "Written by Anthony Liguori.\n" |
73 | 73 | "\n" |
74 | 74 | "Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>.\n" |
75 | 75 | "This is free software; see the source for copying conditions. There is NO\n" |
76 | 76 | "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" |
77 | - ); | |
77 | + , name); | |
78 | 78 | } |
79 | 79 | |
80 | 80 | struct partition_record | ... | ... |