From patchwork Wed Mar 17 17:56:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 47965 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21378B7D27 for ; Thu, 18 Mar 2010 05:54:06 +1100 (EST) Received: from localhost ([127.0.0.1]:34885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NryNA-0001rV-Rk for incoming@patchwork.ozlabs.org; Wed, 17 Mar 2010 14:53:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrxUR-0000VT-LJ for qemu-devel@nongnu.org; Wed, 17 Mar 2010 13:57:07 -0400 Received: from [199.232.76.173] (port=55480 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrxUQ-0000UN-OR for qemu-devel@nongnu.org; Wed, 17 Mar 2010 13:57:06 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrxUM-0007mD-Tr for qemu-devel@nongnu.org; Wed, 17 Mar 2010 13:57:06 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:44968) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NrxUM-0007m7-BM for qemu-devel@nongnu.org; Wed, 17 Mar 2010 13:57:02 -0400 Received: from blackfin.pond.sub.org (pD9E398E1.dip.t-dialin.net [217.227.152.225]) by oxygen.pond.sub.org (Postfix) with ESMTPA id E0E53276DB5 for ; Wed, 17 Mar 2010 18:56:55 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 11FBBCB; Wed, 17 Mar 2010 18:56:54 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Wed, 17 Mar 2010 18:56:52 +0100 Message-Id: <1268848614-6844-5-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1268848614-6844-1-git-send-email-armbru@redhat.com> References: <1268848614-6844-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH 4/6] error: Make use of error_set_progname() optional X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster --- qemu-error.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-error.c b/qemu-error.c index 5d5fe37..9b9c0a1 100644 --- a/qemu-error.c +++ b/qemu-error.c @@ -167,7 +167,7 @@ void error_print_loc(void) int i; const char *const *argp; - if (!cur_mon) { + if (!cur_mon && progname) { fprintf(stderr, "%s:", progname); sep = " "; }