From patchwork Mon Oct 26 13:31:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 55534 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1206648lbq; Mon, 26 Oct 2015 06:32:29 -0700 (PDT) X-Received: by 10.140.34.41 with SMTP id k38mr41946951qgk.95.1445866349181; Mon, 26 Oct 2015 06:32:29 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 90si31910032qgi.80.2015.10.26.06.32.28 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Oct 2015 06:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:52962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqhsy-000688-P0 for patch@linaro.org; Mon, 26 Oct 2015 09:32:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqhsI-0005PY-Hl for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:31:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqhsA-0002ed-Qq for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:31:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqhsA-0002dz-LD for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:31:38 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 2DBDA8E24B for ; Mon, 26 Oct 2015 13:31:38 +0000 (UTC) Received: from hawk.localdomain.com (dhcp-1-144.brq.redhat.com [10.34.1.144]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9QDVae7015389; Mon, 26 Oct 2015 09:31:37 -0400 From: Andrew Jones To: qemu-devel@nongnu.org Date: Mon, 26 Oct 2015 14:31:33 +0100 Message-Id: <1445866293-4570-1-git-send-email-drjones@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: ehabkost@redhat.com Subject: [Qemu-devel] [PATCH v2] vl: trivial: minor tweaks to a max-cpu error msg X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Also switch to using error_report. Signed-off-by: Andrew Jones --- v2: Also switch to using error_report [Markus] vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.4.3 diff --git a/vl.c b/vl.c index 7c806a2428399..549c6675fe8df 100644 --- a/vl.c +++ b/vl.c @@ -4080,9 +4080,9 @@ int main(int argc, char **argv, char **envp) machine_class->max_cpus = machine_class->max_cpus ?: 1; /* Default to UP */ if (max_cpus > machine_class->max_cpus) { - fprintf(stderr, "Number of SMP cpus requested (%d), exceeds max cpus " - "supported by machine `%s' (%d)\n", max_cpus, - machine_class->name, machine_class->max_cpus); + error_report("Number of SMP CPUs requested (%d) exceeds max CPUs " + "supported by machine '%s' (%d)", max_cpus, + machine_class->name, machine_class->max_cpus); exit(1); }