From patchwork Mon Oct 16 10:04:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 132626 X-Patchwork-Delegate: jerinj@marvell.com 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 118E34317D; Mon, 16 Oct 2023 12:04:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA0B040269; Mon, 16 Oct 2023 12:04:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 5921E4021D for ; Mon, 16 Oct 2023 12:04:54 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39G9guOt013089; Mon, 16 Oct 2023 03:04:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=awDShj8DvfsPLqk1eWTgxVE7HENivwhnhNbl+Ud3tG4=; b=QKiksc0Pik5YVtBNSgiXjCxZZJPZ/3JjEbkB5uDtUhjTYIk5XWGUEeV+yPep6DdBNmga 66W7hSae49WY2Smaplme6NOiWOqA8u4vCoatLeCVPSntMyNp0cgs1fgq09xmFNLra7cy ZbgJb20t61UWCJqETGAduXOOnV/J1JcoM5DexDm1mnU17bDPbfNdLB3D+jgIBn1CXLQH eNLKrZSQHD5Cme//Io2dPJBd237Svgos3VEHAvhZar2G6tC9l+7MFqwDvdFuhUz5iEdN BCwSEJsr3b71EH329W0Sdac74LfM2z25Jnl56sLTAe59z2fv3gEUajfUNtStUrQk8QV1 TQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ts2skg1xe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 16 Oct 2023 03:04:50 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 16 Oct 2023 03:04:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 16 Oct 2023 03:04:48 -0700 Received: from cavium-DT10.. (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id D86823F70BE; Mon, 16 Oct 2023 03:04:46 -0700 (PDT) From: Tomasz Duszynski To: , Jakub Palider , Tomasz Duszynski CC: , , Subject: [PATCH v3 2/2] raw/cnxk_gpio: add bunch of newlines Date: Mon, 16 Oct 2023 12:04:22 +0200 Message-ID: <20231016100422.1476232-2-tduszynski@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016100422.1476232-1-tduszynski@marvell.com> References: <20231005211000.1099054-1-tduszynski@marvell.com> <20231016100422.1476232-1-tduszynski@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: sQAfVjMDkwsgl_KNJHa4qbsuqEKV4M8X X-Proofpoint-ORIG-GUID: sQAfVjMDkwsgl_KNJHa4qbsuqEKV4M8X X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-16_03,2023-10-12_01,2023-05-22_02 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 Improve log output by adding some newlines. Signed-off-by: Tomasz Duszynski Reviewed-by: Jerin Jacob Kollanukkaran Tested-by: Jerin Jacob Kollanukkaran --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index c480711942..29c2506726 100644 --- a/drivers/raw/cnxk_gpio/cnxk_gpio.c +++ b/drivers/raw/cnxk_gpio/cnxk_gpio.c @@ -739,7 +739,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) cnxk_gpio_format_name(name, sizeof(name)); rawdev = rte_rawdev_pmd_allocate(name, sizeof(*gpiochip), rte_socket_id()); if (!rawdev) { - RTE_LOG(ERR, PMD, "failed to allocate %s rawdev", name); + RTE_LOG(ERR, PMD, "failed to allocate %s rawdev\n", name); return -ENOMEM; } @@ -768,7 +768,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) snprintf(buf, sizeof(buf), "%s/gpiochip%d/base", CNXK_GPIO_CLASS_PATH, gpiochip->num); ret = cnxk_gpio_read_attr_int(buf, &gpiochip->base); if (ret) { - RTE_LOG(ERR, PMD, "failed to read %s", buf); + RTE_LOG(ERR, PMD, "failed to read %s\n", buf); goto out; } @@ -776,7 +776,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) snprintf(buf, sizeof(buf), "%s/gpiochip%d/ngpio", CNXK_GPIO_CLASS_PATH, gpiochip->num); ret = cnxk_gpio_read_attr_int(buf, &gpiochip->num_gpios); if (ret) { - RTE_LOG(ERR, PMD, "failed to read %s", buf); + RTE_LOG(ERR, PMD, "failed to read %s\n", buf); goto out; } gpiochip->num_queues = gpiochip->num_gpios; @@ -789,7 +789,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) gpiochip->gpios = rte_calloc(NULL, gpiochip->num_gpios, sizeof(struct cnxk_gpio *), 0); if (!gpiochip->gpios) { - RTE_LOG(ERR, PMD, "failed to allocate gpios memory"); + RTE_LOG(ERR, PMD, "failed to allocate gpios memory\n"); ret = -ENOMEM; goto out; }