From patchwork Fri Feb 24 10:37:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Fergeau X-Patchwork-Id: 142927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B9766B6FCA for ; Sat, 25 Feb 2012 02:46:13 +1100 (EST) Received: from localhost ([::1]:60338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0xLX-0005sY-NS for incoming@patchwork.ozlabs.org; Fri, 24 Feb 2012 10:46:11 -0500 Received: from eggs.gnu.org ([140.186.70.92]:54343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0sXM-0001za-7G for qemu-devel@nongnu.org; Fri, 24 Feb 2012 05:38:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0sXG-00059t-LC for qemu-devel@nongnu.org; Fri, 24 Feb 2012 05:38:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0sXG-00059c-Ee for qemu-devel@nongnu.org; Fri, 24 Feb 2012 05:37:58 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1OAbvn5022104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Feb 2012 05:37:57 -0500 Received: from teriyaki.redhat.com (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1OAbsHD026036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 Feb 2012 05:37:56 -0500 From: Christophe Fergeau To: qemu-devel@nongnu.org Date: Fri, 24 Feb 2012 11:37:53 +0100 Message-Id: <1330079874-5818-1-git-send-email-cfergeau@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-Mailman-Approved-At: Fri, 24 Feb 2012 10:46:04 -0500 Subject: [Qemu-devel] [PATCH 1/2] Add \n to the end of fatal spice error messages 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Without it the shell prompt doesn't appear on a new line after qemu dies. --- ui/spice-core.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 1308a3d..6d240a3 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -568,15 +568,15 @@ void qemu_spice_init(void) port = qemu_opt_get_number(opts, "port", 0); tls_port = qemu_opt_get_number(opts, "tls-port", 0); if (!port && !tls_port) { - fprintf(stderr, "neither port nor tls-port specified for spice."); + fprintf(stderr, "neither port nor tls-port specified for spice.\n"); exit(1); } if (port < 0 || port > 65535) { - fprintf(stderr, "spice port is out of range"); + fprintf(stderr, "spice port is out of range\n"); exit(1); } if (tls_port < 0 || tls_port > 65535) { - fprintf(stderr, "spice tls-port is out of range"); + fprintf(stderr, "spice tls-port is out of range\n"); exit(1); } password = qemu_opt_get(opts, "password"); @@ -700,7 +700,7 @@ void qemu_spice_init(void) qemu_opt_foreach(opts, add_channel, NULL, 0); if (0 != spice_server_init(spice_server, &core_interface)) { - fprintf(stderr, "failed to initialize spice server"); + fprintf(stderr, "failed to initialize spice server\n"); exit(1); }; using_spice = 1;