From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 373A54408C; Tue, 21 May 2024 19:09:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0715340DCB; Tue, 21 May 2024 19:08:14 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 6477D40E25 for ; Tue, 21 May 2024 19:08:08 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1ed904c2280so2957185ad.2 for ; Tue, 21 May 2024 10:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716311288; x=1716916088; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BofXLaCQzFPxNJh9822n+x8IHkD2bpi6dG3sqDlipgY=; b=yVFLY92/UWXAs4Tl4EX9W4R5yVIsc39KNvZ2vK/V3UX9ZbeN/N8FUamhRqRmeG0dhm UxT++NMOxxVxmXjQnIW9YfQwiJPKAWbtOXBVVAOBjH5dMAFpUAnBiqT9zCFuxZCkUb+j xTCUF6Rsjbw/zKfVZAmIJ2ndWqEwUgri1+o/55/sYBYLxO08IL7QA9H2mxmXQ8H5y4+s EpE7mFFo9/u+XJ1ZRm9PjsJ4GWMOaHM0PA33KHuQxOXskKncqeNvyzq/KZw9nB1VwZf6 B5/XBtokJMvJyOXuVyKXbrsfV4+ec4dOPeg65AnsucH/7Mi0zcg+ylnAnRDgNw2awN06 PfuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716311288; x=1716916088; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BofXLaCQzFPxNJh9822n+x8IHkD2bpi6dG3sqDlipgY=; b=RxU2nyRFA7fE30JFaOM405vD+vuDPX9UM/SU8Q6RiHeqwglBKgVZDow5qV3x/h9gYC P7jwS+FDTF5qyh2rnp+t4qDKm/EX2z4CZdUuXoErAoheO0XqDV3wwlE+D3z52KSxEqYt Pyvq1O9auA508ukL0m3UlE6FL7pXmJfCHeXI7CRCWpGMB9vu+ZDHkrf32LJYeanm74p1 NinQ7r+0BpEkxDz9Kc2Rjc3ntN8sElQ0dhIjfz7w0kF9Ew9XU+PTvuh3fACML6w27I2U IKMnuzzn8v/mbbvmuRkxdAU5bXQdK6gw66GQP6I+bGPWKwkEfM0YZ0RCsCDpdnbg6Rb6 cu3Q== X-Gm-Message-State: AOJu0YwOSoiVkWwUa6HWOYEkKRVj2twLVB2isU/gL36sVk7xmFyDlz/y 6L55QZ5HrzfOOjIFmrwlXpKQqfxSv7DBi/QWHGw6ywrGxSqDK9Ld5I/uqfb0C0fm3JfKLyoqHh3 a X-Google-Smtp-Source: AGHT+IH14pD/6Fz1pFhBbTNT85frtBijI0+7jBOrMAOkSXFmTb5Wkan4EGgvtXTEDsiTbFFGtg54lA== X-Received: by 2002:a17:902:ce86:b0:1e9:43c:d176 with SMTP id d9443c01a7336-1ef43c0cf35mr392277825ad.12.1716311287731; Tue, 21 May 2024 10:08:07 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2af52b4sm21634041b3a.174.2024.05.21.10.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 10:08:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ferruh Yigit Subject: [PATCH v14 10/11] net/tap: remove extraneous newlines Date: Tue, 21 May 2024 10:06:10 -0700 Message-ID: <20240521170746.119330-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521170746.119330-1-stephen@networkplumber.org> References: <20240130034925.44869-1-stephen@networkplumber.org> <20240521170746.119330-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some log messages contained extra newlines. Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- drivers/net/tap/rte_eth_tap.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 3614aaf1dc..2484a82ccb 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -235,9 +235,8 @@ tun_alloc(struct pmd_internals *pmd, int is_keepalive, int persistent) flags = fcntl(fd, F_GETFL); if (flags == -1) { - TAP_LOG(WARNING, - "Unable to get %s current flags\n", - ifr.ifr_name); + TAP_LOG(WARNING, "Unable to get %s current flags: %s", + ifr.ifr_name, strerror(errno)); goto error; } @@ -279,7 +278,7 @@ tun_alloc(struct pmd_internals *pmd, int is_keepalive, int persistent) if (sigaction(signo, &sa, NULL) == -1) { TAP_LOG(WARNING, - "Unable to set rt-signal %d handler\n", signo); + "Unable to set rt-signal %d handler", signo); goto error; } @@ -290,11 +289,11 @@ tun_alloc(struct pmd_internals *pmd, int is_keepalive, int persistent) } if (signo == SIGRTMAX) { - TAP_LOG(WARNING, "All rt-signals are in use\n"); + TAP_LOG(WARNING, "All rt-signals are in use"); /* Disable trigger globally in case of error */ tap_trigger = 0; - TAP_LOG(NOTICE, "No Rx trigger signal available\n"); + TAP_LOG(NOTICE, "No Rx trigger signal available"); } else { /* Enable signal on file descriptor */ if (fcntl(fd, F_SETSIG, signo) < 0) { @@ -920,7 +919,7 @@ tap_mp_req_start_rxtx(const struct rte_mp_msg *request, __rte_unused const void } process_private = dev->process_private; - TAP_LOG(DEBUG, "tap_attach q:%d\n", request_param->q_count); + TAP_LOG(DEBUG, "tap_attach q:%d", request_param->q_count); for (int q = 0; q < request_param->q_count; q++) process_private->fds[q] = request->fds[q]; @@ -1463,7 +1462,7 @@ tap_gso_ctx_setup(struct rte_gso_ctx *gso_ctx, struct rte_eth_dev *dev) if (ret < 0 || ret >= (int)sizeof(pool_name)) { TAP_LOG(ERR, "%s: failed to create mbuf pool name for device %s," - "device name too long or output error, ret: %d\n", + "device name too long or output error, ret: %d", pmd->name, dev->device->name, ret); return -ENAMETOOLONG; } @@ -1473,7 +1472,7 @@ tap_gso_ctx_setup(struct rte_gso_ctx *gso_ctx, struct rte_eth_dev *dev) SOCKET_ID_ANY); if (!pmd->gso_ctx_mp) { TAP_LOG(ERR, - "%s: failed to create mbuf pool for device %s\n", + "%s: failed to create mbuf pool for device %s", pmd->name, dev->device->name); return -1; } -- 2.43.0