diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-02-04 16:49:56 +0100 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2010-02-08 12:12:40 +0300 |
commit | 60665085f71cbb1723a4d13a2d8c6eaa7bf65d1b (patch) | |
tree | e8610500e3498930dad134489bdfebfb6dc030bd /qemu-img.c | |
parent | 678a609748d451d67e2c73a4e0fd4d1744cf3200 (diff) | |
download | qemu-60665085f71cbb1723a4d13a2d8c6eaa7bf65d1b.tar.gz qemu-60665085f71cbb1723a4d13a2d8c6eaa7bf65d1b.tar.bz2 qemu-60665085f71cbb1723a4d13a2d8c6eaa7bf65d1b.zip |
qemu-img: avoid preprocessor directives in a printf call
Other choices include using "(printf)", but this one is not bad in
terms of readability.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qemu-img.c b/qemu-img.c index cbba4fc790..eb5c0f0207 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -58,7 +58,8 @@ static void format_print(void *opaque, const char *name) /* Please keep in synch with qemu-img.texi */ static void help(void) { - printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" + const char *help_msg = + "qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" "usage: qemu-img command [command options]\n" "QEMU disk image utility\n" "\n" @@ -91,9 +92,9 @@ static void help(void) " '-a' applies a snapshot (revert disk to saved state)\n" " '-c' creates a snapshot\n" " '-d' deletes a snapshot\n" - " '-l' lists all snapshots in the given image\n" - ); - printf("\nSupported formats:"); + " '-l' lists all snapshots in the given image\n"; + + printf("%s\nSupported formats:", help_msg); bdrv_iterate_format(format_print, NULL); printf("\n"); exit(1); |