From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by dpdk.org (Postfix) with ESMTP id 79FAA7FC9 for ; Wed, 16 May 2018 23:51:44 +0200 (CEST) Received: by mail-pl0-f66.google.com with SMTP id i5-v6so1200867plt.2 for ; Wed, 16 May 2018 14:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=HyPUj7+kq0M6FyDrneEbx+23F0snqnGSFAgHkdNeG+g=; b=08Cz3SkugSkB8wgM227fcQeOhMBVkFPeKdvKPOGjCUt3FFM31rItso3SI1a8zkn5jd RX+4mjsh+GoJQ5NUEe+Jfuq39fzDKxX2ikXNSrsW9PNw9jGdewWhVw/R22jGUfZxTic1 kTKcaENQh2o4NqF/DYkbIJK7TTNVI6iA4y1w0PKI5ixagVsN8q67hlVbctvS2o1YticK GytUt8x6pnCCKLBTtsy4x+c2QcLhXBY1h7Q05Ov4E1Yh1G+1o+cMThVIoxXhyQyoiuKb pTrIXicQS4bQrCX+DkHp8zqUTYscUQF4RucfiMQf/WPCqCodA8zIu4KWj3S+Tcz0WfCG GA7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HyPUj7+kq0M6FyDrneEbx+23F0snqnGSFAgHkdNeG+g=; b=JQsjSGZcGk/G8/u9A2ZzIc6iz7prnr+abpsFLUbnC30p/zC3cf9yNvSJhhp55rQ9Cz OtVfc3/CwRoYBum2XbfEAm9xMTdOv3VBTpYSDMd6vd3XCbaA9H1JXRGWJsWfdftOkkq5 pKwvQz3i/f9j/0g1m8MI7LsX/eSevAj1XERYn+Jwdkfc8eCf6ODuYAHuFUxAnSsYLREV cXGpZ1We5UOIh0Y4iOGIBpQ0xLiWcSdsyXwFynG0gF0Ah6JZYx3DiCoRFBvnMIpS1Eoc u/dbkOdJyddfiXyMDXWJkWeRgg6Z9v3ussgpsAWX8KQ7e3Ddc/O9G57SBvQ7hHuWF4qY FKvw== X-Gm-Message-State: ALKqPweq5ZgfnYi1ZIOMrfMuRSgntfBR0cJNkTJtTj77mBinH5cQWm5N Rm8TNmeiU5zUkl4GUH8tWB1mpNsEVXk= X-Google-Smtp-Source: AB8JxZoVoIlQnmilJjXSw1DCquI4QT9YR90ZH1lRp9t06cf/IroAjPOr51lLxQ8JTfUUnnYTQ0Ud7w== X-Received: by 2002:a17:902:a616:: with SMTP id u22-v6mr2674684plq.186.1526507503634; Wed, 16 May 2018 14:51:43 -0700 (PDT) Received: from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id g207-v6sm6045596pfb.18.2018.05.16.14.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 14:51:42 -0700 (PDT) From: Stephen Hemminger To: gaetan.rivet@6wind.com Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 16 May 2018 14:51:40 -0700 Message-Id: <20180516215140.21134-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH] bus/vdev: don't double space log messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 21:51:44 -0000 The VDEV_LOG() macro already adds a newline, don't duplicate. Signed-off-by: Stephen Hemminger --- drivers/bus/vdev/vdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index 9f576eb80f26..099b9ff85a70 100644 --- a/drivers/bus/vdev/vdev.c +++ b/drivers/bus/vdev/vdev.c @@ -142,7 +142,7 @@ vdev_probe_all_drivers(struct rte_vdev_device *dev) name = rte_vdev_device_name(dev); - VDEV_LOG(DEBUG, "Search driver %s to probe device %s\n", name, + VDEV_LOG(DEBUG, "Search driver %s to probe device %s", name, rte_vdev_device_name(dev)); if (vdev_parse(name, &driver)) @@ -255,7 +255,7 @@ rte_vdev_init(const char *name, const char *args) ret = vdev_probe_all_drivers(dev); if (ret) { if (ret > 0) - VDEV_LOG(ERR, "no driver found for %s\n", name); + VDEV_LOG(ERR, "no driver found for %s", name); /* If fails, remove it from vdev list */ devargs = dev->device.devargs; TAILQ_REMOVE(&vdev_device_list, dev, next); @@ -274,7 +274,7 @@ vdev_remove_driver(struct rte_vdev_device *dev) const struct rte_vdev_driver *driver; if (!dev->device.driver) { - VDEV_LOG(DEBUG, "no driver attach to device %s\n", name); + VDEV_LOG(DEBUG, "no driver attach to device %s", name); return 1; } @@ -482,7 +482,7 @@ vdev_probe(void) continue; if (vdev_probe_all_drivers(dev)) { - VDEV_LOG(ERR, "failed to initialize %s device\n", + VDEV_LOG(ERR, "failed to initialize %s device", rte_vdev_device_name(dev)); ret = -1; } -- 2.17.0