raw/dpaa2_cmdif: fix warnings with GCC 9
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 1 May 2019 19:50:14 +0000 (20:50 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 May 2019 12:17:37 +0000 (14:17 +0200)
commita53f14f96112a0851a9c3788dd1e7b9d61c50191
tree0b394f8c98e23a7a33ce4748f6c73c6189e0a1b2
parent3a66890a8ada0a35f9292b1b6ce0326a5c3ce384
raw/dpaa2_cmdif: fix warnings with GCC 9

GCC9 gives warnings if the parameter passed to printf for "%s" could be
NULL, so we need to add checks in some cases to ensure that is not the
case.

Fixes: 3298fa4853b8 ("raw/dpaa2_cmdif: introduce DPAA2 command interface driver")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c