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:
parent
e81b0569cc
commit
33832c1471
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user