Allow qemu-nbd --version to show the application name dynamically, by
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 18 Jul 2008 18:06:23 +0000 (18:06 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 18 Jul 2008 18:06:23 +0000 (18:06 +0000)
Carlo Marcelo Arenas Belon.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4893 c046a42c-6fe2-441c-8c8c-71466251a162

qemu-nbd.c

index 45464a0..916150e 100644 (file)
@@ -68,13 +68,13 @@ static void usage(const char *name)
 static void version(const char *name)
 {
     printf(
-"qemu-nbd version 0.0.1\n"
+"%s version 0.0.1\n"
 "Written by Anthony Liguori.\n"
 "\n"
 "Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>.\n"
 "This is free software; see the source for copying conditions.  There is NO\n"
 "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-    );
+    , name);
 }
 
 struct partition_record