From: Bruce Richardson <bruce.richardson@intel.com>
Date: Wed, 1 May 2019 19:50:12 +0000 (+0100)
Subject: bus/fslmc: fix warning with GCC 9
X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=33832c1471e22afaf2e616a7a0325ea9958ce278;p=dpdk.git

bus/fslmc: fix warning with GCC 9

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.

Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index eaa39a2093..f6e66d22c7 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -197,7 +197,7 @@ scan_one_fslmc_device(char *dev_name)
 
 	t_ptr = strtok(NULL, ".");
 	if (!t_ptr) {
-		DPAA2_BUS_ERR("Incorrect device string observed (%s)", t_ptr);
+		DPAA2_BUS_ERR("Incorrect device string observed (null)");
 		goto cleanup;
 	}