summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-01 20:50:12 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-02 14:17:26 +0200
commit33832c1471e22afaf2e616a7a0325ea9958ce278 (patch)
tree0f1af0dbc773d32824877621af1c4df7b23b21ad /drivers/bus
parente81b0569cc6855fb4d95635d0ae8a749da5d0aed (diff)
downloaddpdk-33832c1471e22afaf2e616a7a0325ea9958ce278.zip
dpdk-33832c1471e22afaf2e616a7a0325ea9958ce278.tar.gz
dpdk-33832c1471e22afaf2e616a7a0325ea9958ce278.tar.xz
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>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/fslmc/fslmc_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index eaa39a2..f6e66d2 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;
}