From patchwork Wed Jun 1 07:08:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Jiangang X-Patchwork-Id: 9146197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6B2F60757 for ; Wed, 1 Jun 2016 07:10:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B954A20265 for ; Wed, 1 Jun 2016 07:10:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE1C925E13; Wed, 1 Jun 2016 07:10:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51CC620265 for ; Wed, 1 Jun 2016 07:10:46 +0000 (UTC) Received: from localhost ([::1]:40062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80If-0005WX-Cj for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Jun 2016 03:10:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80IG-0005Sq-CL for qemu-devel@nongnu.org; Wed, 01 Jun 2016 03:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b80IE-0006Il-DY for qemu-devel@nongnu.org; Wed, 01 Jun 2016 03:10:19 -0400 Received: from [59.151.112.132] (port=37255 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80I6-0006AH-Uf; Wed, 01 Jun 2016 03:10:11 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="7194174" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 01 Jun 2016 15:09:58 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 6C0BE41C0B83; Wed, 1 Jun 2016 15:09:52 +0800 (CST) Received: from localhost.localdomain (10.167.226.50) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.279.2; Wed, 1 Jun 2016 15:09:52 +0800 From: Wei Jiangang To: Date: Wed, 1 Jun 2016 15:08:21 +0800 Message-ID: <1464764901-8773-1-git-send-email-weijg.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 X-Originating-IP: [10.167.226.50] X-yoursite-MailScanner-ID: 6C0BE41C0B83.AF473 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: weijg.fnst@cn.fujitsu.com X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 59.151.112.132 Subject: [Qemu-devel] [PATCH] block/raw-posix: Fix error_report of mounting message X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, kwolf@redhat.com, Wei Jiangang , qemu-block@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Use a single error_printf to replace triple error_report. Signed-off-by: Wei Jiangang --- block/raw-posix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index a4f5a1b..141b01a 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -2061,11 +2061,11 @@ static bool setup_cdrom(char *bsd_path, Error **errp) /* Prints directions on mounting and unmounting a device */ static void print_unmounting_directions(const char *file_name) { - error_report("If device %s is mounted on the desktop, unmount" - " it first before using it in QEMU", file_name); - error_report("Command to unmount device: diskutil unmountDisk %s", - file_name); - error_report("Command to mount device: diskutil mountDisk %s", file_name); + error_printf("If device %s is mounted on the desktop, unmount" + " it first before using it in QEMU\n" + "Command to unmount device: diskutil unmountDisk %s\n" + "Command to mount device: diskutil mountDisk %s\n", + file_name, file_name, file_name); } #endif /* defined(__APPLE__) && defined(__MACH__) */