git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81b056
)
bus/fslmc: fix warning with GCC 9
author
Bruce Richardson
<bruce.richardson@intel.com>
Wed, 1 May 2019 19:50:12 +0000
(20:50 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Thu, 2 May 2019 12:17:26 +0000
(14:17 +0200)
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>
drivers/bus/fslmc/fslmc_bus.c
patch
|
blob
|
history
diff --git
a/drivers/bus/fslmc/fslmc_bus.c
b/drivers/bus/fslmc/fslmc_bus.c
index
eaa39a2
..
f6e66d2
100644
(file)
--- 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;
}