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 From: Peter Maydell Date: Thu, 27 Mar 2014 14:13:29 +0000 Message-Id: <1395929609-764-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1395929609-764-1-git-send-email-peter.maydell@linaro.org> References: <1395929609-764-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 2/2] vl.c: Improve message when no default machine is found List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org 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); } -- 1.9.0