[PATCH v3 2/2] raw/cnxk_gpio: add bunch of newlines
Tomasz Duszynski
tduszynski at marvell.com
Mon Oct 16 12:04:22 CEST 2023
Improve log output by adding some newlines.
Signed-off-by: Tomasz Duszynski <tduszynski at marvell.com>
Reviewed-by: Jerin Jacob Kollanukkaran <jerinj at marvell.com>
Tested-by: Jerin Jacob Kollanukkaran <jerinj at marvell.com>
---
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;
}
--
2.34.1
More information about the dev
mailing list