raw/skeleton: fix warnings with GCC 9
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 1 May 2019 19:50:13 +0000 (20:50 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 May 2019 12:17:34 +0000 (14:17 +0200)
commit3a66890a8ada0a35f9292b1b6ce0326a5c3ce384
tree142df27a9b1ce3b732f3c775cc4a7e1038d0d54c
parent33832c1471e22afaf2e616a7a0325ea9958ce278
raw/skeleton: 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: 61c592a8d035 ("raw/skeleton: introduce skeleton rawdev driver")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/skeleton_rawdev/skeleton_rawdev.c