[dpdk-stable] [PATCH 18.11 2/3] bus/fslmc: fix warning with GCC 9

Kevin Traynor ktraynor at redhat.com
Thu May 16 20:21:56 CEST 2019


Printing a null pointer with %s is flagged as a warning by GCC 9, and
should not be done. Replace the %s with the word "null" itself.

This is an additional GCC 9 fix required for dpdk-stable.

Fixes: 50245be05d1a ("bus/fslmc: support device blacklisting")

Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
---
 drivers/bus/fslmc/fslmc_bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 9ee1bf862..776b7caad 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -253,5 +253,5 @@ rte_fslmc_parse(const char *name, void *addr)
 	t_ptr = strchr(name, '.');
 	if (!t_ptr) {
-		DPAA2_BUS_ERR("Incorrect device string observed (%s)", t_ptr);
+		DPAA2_BUS_ERR("Incorrect device string observed (null)");
 		goto err_out;
 	}
-- 
2.20.1



More information about the stable mailing list