From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] allow qemu-nbd --version to show the application name dynamically
Date: Wed, 16 Jul 2008 06:05:49 -0500 [thread overview]
Message-ID: <20080716110549.GA21383@tapir> (raw)
[-- Attachment #1: Type: text/plain, Size: 123 bytes --]
As used for --help and as it was probably expected by passing argv[0] as a
parameter to the version() function.
Carlo
---
[-- Attachment #2: qemu-nbd-argversion.patch --]
[-- Type: text/plain, Size: 589 bytes --]
Index: qemu-nbd.c
===================================================================
--- qemu-nbd.c (revision 4874)
+++ qemu-nbd.c (working copy)
@@ -68,13 +68,13 @@
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
reply other threads:[~2008-07-16 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080716110549.GA21383@tapir \
--to=carenas@sajinet.com.pe \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).