From patchwork Mon Mar 7 09:05:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianli Lai X-Patchwork-Id: 108557 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0F2D6A0093; Mon, 7 Mar 2022 02:05:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 001A44114B; Mon, 7 Mar 2022 02:05:18 +0100 (CET) Received: from smtp.tom.com (smtprz14.163.net [106.3.154.247]) by mails.dpdk.org (Postfix) with ESMTP id EE587410EF for ; Mon, 7 Mar 2022 02:05:16 +0100 (CET) Received: from my-app02.tom.com (my-app02.tom.com [127.0.0.1]) by freemail02.tom.com (Postfix) with ESMTP id CD2C8B00D31 for ; Mon, 7 Mar 2022 09:05:15 +0800 (CST) Received: from my-app02.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app02 (TOM SMTP Server) with SMTP ID -22648921 for ; Mon, 07 Mar 2022 09:05:15 +0800 (CST) Received: from antispam1.tom.com (unknown [172.25.16.55]) by freemail02.tom.com (Postfix) with ESMTP id BB330B00CC2 for ; Mon, 7 Mar 2022 09:05:15 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1646615115; bh=arePIg3EaLieoIKcj4Nmli2CyNpQk3qmkjdicnLYT+w=; h=From:To:Subject:Date:From; b=bG6FUUnpTSgucqONBm3p+cWnAfv0qcxx0OdiNWWWArFYalatDh2XBiyt6Jp+zrOUM mNwhDGXOQtXodw2U6jEiq2Ca/gqHI6tjtx66cHsqM1NjYGnfmSI2RFPuRswP2IZ0hz rQWs8AKNYE04hsj1qhkblS4B5A4kvx5dOxWMzHXM= Received: from antispam1.tom.com (antispam1.tom.com [127.0.0.1]) by antispam1.tom.com (Postfix) with ESMTP id B322ED4159C for ; Mon, 7 Mar 2022 09:05:15 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam1.tom.com Received: from antispam1.tom.com ([127.0.0.1]) by antispam1.tom.com (antispam1.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kLZgqwB4WPkW for ; Mon, 7 Mar 2022 09:05:14 +0800 (CST) Received: from localhost.localdomain (unknown [218.19.113.131]) by antispam1.tom.com (Postfix) with ESMTPA id 89778D41587 for ; Mon, 7 Mar 2022 09:05:14 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Subject: [PATCH] examples/kni: add CR character at print log Date: Mon, 7 Mar 2022 17:05:05 +0800 Message-Id: <20220307090505.6598-1-laitianli@tom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 add CR character at print link state information Signed-off-by: Tianli Lai Reviewed-by: Ferruh Yigit --- examples/kni/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5b20a7b62..e99ef5c38a 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -719,7 +719,7 @@ log_link_state(struct rte_kni *kni, int prev, struct rte_eth_link *link) rte_eth_link_to_str(link_status_text, sizeof(link_status_text), link); if (prev != link->link_status) - RTE_LOG(INFO, APP, "%s NIC %s", + RTE_LOG(INFO, APP, "%s NIC %s\n", rte_kni_get_name(kni), link_status_text); }