From patchwork Tue Mar 25 19:26:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 27085 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7EF0D20062 for ; Tue, 25 Mar 2014 19:26:57 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id uy17sf4516694igb.2 for ; Tue, 25 Mar 2014 12:26:56 -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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=cWokrZY3ID6AAkCY9Kgf6i5nJExB6pDVB1Y2YkerThA=; b=kRBoOrlLrB7JL7M/VBmDhptdMb/LyY4+evpM189gDeA8LVwd+p6PeRjgD3J8qtOVn1 tssD+nky0MQeiKax8IgLWVMAQZuXFuzSWxXiiua9iiA7xH634vIme+WsvNVGq3Fb+Bb7 Gv528MifpiaGGDjKqpCmVRa7Mwm55uwII3mVBxeT+Gbjpfbzn+E4Yg/WDVGw5WH/gAju J1tDkQEjhubPIJdhzyx+FgKHzUysJUGeHNSLZqPEdrKepdkAM8CTq2W6pPF/zxwu9Y1+ LKgsNsNd2npayxT3oEmQ92/2i/pUOJSYr6PLE2LZ6YtwSdoTUSTkK6kNUzOKGs5GI+p0 hxPQ== X-Gm-Message-State: ALoCoQkzYa79+zbyTHAirHHLgpszsbPxGY2ewTiZRvL3XnyFNNPAf1VAibdoDqVDQYWUCw9H4J++ X-Received: by 10.182.22.133 with SMTP id d5mr16116340obf.27.1395775616630; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.22 with SMTP id 22ls329405qgi.63.gmail; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) X-Received: by 10.221.22.71 with SMTP id qv7mr1398246vcb.34.1395775616551; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id sc12si3961221veb.79.2014.03.25.12.26.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 12:26:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so1150536veb.1 for ; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) X-Received: by 10.52.119.197 with SMTP id kw5mr48304117vdb.5.1395775616449; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.78.9 with SMTP id i9csp332025vck; Tue, 25 Mar 2014 12:26:56 -0700 (PDT) X-Received: by 10.180.187.16 with SMTP id fo16mr25864179wic.26.1395775615510; Tue, 25 Mar 2014 12:26:55 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ft10si3157898wib.122.2014.03.25.12.26.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 12:26:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WSWzt-00084K-6X; Tue, 25 Mar 2014 19:26:53 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Paolo Bonzini Subject: [maybe-for-2.0 2/2] vl.c: Improve message when no default machine is found Date: Tue, 25 Mar 2014 19:26:53 +0000 Message-Id: <1395775613-30984-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395775613-30984-1-git-send-email-peter.maydell@linaro.org> References: <1395775613-30984-1-git-send-email-peter.maydell@linaro.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.170 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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: Marcel Apfelbaum Reviewed-by: Alex Bennée --- 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); }