From patchwork Fri Aug 10 05:38:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 1304061 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DEFA73FC66 for ; Fri, 10 Aug 2012 05:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969Ab2HJFjT (ORCPT ); Fri, 10 Aug 2012 01:39:19 -0400 Received: from ozlabs.org ([203.10.76.45]:38648 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753667Ab2HJFjS (ORCPT ); Fri, 10 Aug 2012 01:39:18 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id F096D2C0095; Fri, 10 Aug 2012 15:39:17 +1000 (EST) From: Michael Ellerman To: Cc: Subject: [PATCH 1/2] kvm tools: Fix formatting of error message in TAP handling Date: Fri, 10 Aug 2012 15:38:51 +1000 Message-Id: <1344577132-19796-1-git-send-email-michael@ellerman.id.au> X-Mailer: git-send-email 1.7.9.5 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This error message is missing a space, and has a redundant ":" at the end, currently it produces: You have requested a TAP device, but creation of one hasfailed because:: No such file or directory Add a space to "hasfailed" and remove the extra ":". Don't split the line to improve grepability. Signed-off-by: Michael Ellerman Acked-by: Asias He --- tools/kvm/virtio/net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index 10420ae..8f3735b 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -526,8 +526,7 @@ void virtio_net__init(const struct virtio_net_params *params) ndev->mode = params->mode; if (ndev->mode == NET_MODE_TAP) { if (!virtio_net__tap_init(params, ndev)) - die_perror("You have requested a TAP device, but creation of one has" - "failed because:"); + die_perror("You have requested a TAP device, but creation of one has failed because"); ndev->ops = &tap_ops; } else { ndev->info.host_ip = ntohl(inet_addr(params->host_ip));