From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ4Qm-0001qx-RP for qemu-devel@nongnu.org; Wed, 16 Jul 2008 06:40:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ4Ql-0001oU-2T for qemu-devel@nongnu.org; Wed, 16 Jul 2008 06:40:20 -0400 Received: from [199.232.76.173] (port=52281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ4Qk-0001oN-V6 for qemu-devel@nongnu.org; Wed, 16 Jul 2008 06:40:18 -0400 Received: from tapir.sajinet.com.pe ([66.139.79.212]:42336) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ4Ql-0004kn-A8 for qemu-devel@nongnu.org; Wed, 16 Jul 2008 06:40:19 -0400 Date: Wed, 16 Jul 2008 06:05:49 -0500 From: Carlo Marcelo Arenas Belon Message-ID: <20080716110549.GA21383@tapir> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] allow qemu-nbd --version to show the application name dynamically Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline As used for --help and as it was probably expected by passing argv[0] as a parameter to the version() function. Carlo --- --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu-nbd-argversion.patch" 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 .\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 --XsQoSWH+UP9D9v3l--