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>
This commit is contained in:
Bruce Richardson 2019-05-01 20:50:12 +01:00 committed by Thomas Monjalon
parent e81b0569cc
commit 33832c1471

View File

@ -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;
}