From patchwork Thu Mar 27 14:13:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 27193 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 06488202FA for ; Thu, 27 Mar 2014 14:27:38 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf13141269oag.6 for ; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=nEuZLDt1vyDnHzv/ErO6K3jtYeYvN1RBbKB7wkpv9YI=; b=KfLbguDxUmLTNcBy+bVA9SzSWHp2rCUHqOajZZM7JT7jEhvaBt4vjdILqoi8P/0odM 2nzFyroTlIUcj9RHuKKvLxqOQaPlHqTQn7u4q6vFXxEEO81MKXqDOLqkxe05M6LE9XSm lZI+lvYWM0CPIP74917F4a1dvLIO4KrFFmho0o5p3hYA+LFLSp802LKo9iCvoKu1W9no rp+LDWDtuhGJhIsf7cyDFAN9jpBRhSPeAtkvo4BbbW3rhxDI1lqr8xEr1GX9XDA3bp2H Cv/lnhO9f5Sex0nhpW46NEFn39t/Dio/mrgdpPKUv03swQM19QAQK1dp1iqgwqmS4fU3 mNPg== X-Gm-Message-State: ALoCoQnKVuwiA5YPrP6RA+vqXJsJKVf0EPqd8t5utf7Y6zmqWUtMzAdgcNkcnUvGaHwfubZGy9qZ X-Received: by 10.42.85.142 with SMTP id q14mr751652icl.11.1395930457813; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.40 with SMTP id y37ls1127026qgy.10.gmail; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) X-Received: by 10.52.165.105 with SMTP id yx9mr1443410vdb.22.1395930457608; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id cb3si582574vdc.23.2014.03.27.07.27.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 07:27:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so4166456veb.37 for ; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr1383680vcb.28.1395930457514; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp32237vck; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) X-Received: by 10.224.167.12 with SMTP id o12mr2388249qay.77.1395930457167; Thu, 27 Mar 2014 07:27:37 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e63si1082000qgd.108.2014.03.27.07.27.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 07:27:37 -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; Received: from localhost ([::1]:54002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBHM-0005B3-Kh for patch@linaro.org; Thu, 27 Mar 2014 10:27:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBGf-0004QP-4H for qemu-devel@nongnu.org; Thu, 27 Mar 2014 10:26:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTBGe-0005QG-AG for qemu-devel@nongnu.org; Thu, 27 Mar 2014 10:26:53 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:47166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBGe-0005Pt-3m for qemu-devel@nongnu.org; Thu, 27 Mar 2014 10:26:52 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WTB3h-0000Cu-Kn; Thu, 27 Mar 2014 14:13:29 +0000 From: Peter Maydell To: Anthony Liguori Date: Thu, 27 Mar 2014 14:13:29 +0000 Message-Id: <1395929609-764-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395929609-764-1-git-send-email-peter.maydell@linaro.org> References: <1395929609-764-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 2/2] vl.c: Improve message when no default machine is found 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 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Improve the clarity of the message QEMU prints when the user doesn't specify a machine model to use and there is no default. Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini Reviewed-by: Marcel Apfelbaum --- vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 2355227..9975e5a 100644 --- a/vl.c +++ b/vl.c @@ -3929,7 +3929,8 @@ int main(int argc, char **argv, char **envp) #endif if (machine_class == NULL) { - fprintf(stderr, "No machine found.\n"); + fprintf(stderr, "No machine specified, and there is no default.\n" + "Use -machine help to list supported machines!\n"); exit(1); }