[v3,2/2] raw/cnxk_gpio: add bunch of newlines
Checks
Commit Message
Improve log output by adding some newlines.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Tested-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
---
drivers/raw/cnxk_gpio/cnxk_gpio.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Comments
On Tue, Oct 17, 2023 at 3:02 PM Tomasz Duszynski <tduszynski@marvell.com> wrote:
>
> Improve log output by adding some newlines.
>
> Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
> Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
> Tested-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
> ---
> drivers/raw/cnxk_gpio/cnxk_gpio.c | 8 ++++----
Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks
commit 26e04c2f64f80bb8323c2e32a4f1b59ce1cb283a (HEAD -> for-next-net,
origin/for-next-net)
Author: Tomasz Duszynski <tduszynski@marvell.com>
Date: Mon Oct 16 12:04:22 2023 +0200
raw/cnxk_gpio: improve log output
Improve log output by adding some newlines.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
commit 31f8e6cd63fb5c4eaa4e689fdabc4bce4a0074d7
Author: Tomasz Duszynski <tduszynski@marvell.com>
Date: Mon Oct 16 12:04:21 2023 +0200
raw/cnxk_gpio: support multi-process mode
GPIO PMD uses a mixture of standard sysfs attributes and custom
ioctl()s to control behaviour of respective GPIOs available in
the system.
This means that each userspace application, either running as a primary
or a secondary, should be able to control a set of distinct GPIOs.
In rare cases where multiple processes need to control the same set of
GPIOs userspace application is responsible for synchronizing accesses.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
@@ -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;
}