log: fix pattern matching
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 16 May 2018 14:09:28 +0000 (15:09 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 21 May 2018 13:49:27 +0000 (15:49 +0200)
commit6ff0f81d0ef79acc2544de6a1b52037cd9864395
tree0956bfdaa2c63fba7b303615c4b9fec825ae2c8f
parentbfa49c8f12ea780e333d9f7e3e2bc10a59972ee7
log: fix pattern matching

loglevel set wrong when ":" is used as separator, like
--log-type="user:debug"

This is because fnmatch returns zero on success. Fixed fnmatch return
value check.

Fixes: 7f0bb634a140 ("log: add ability to match log type with globbing")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/eal_common_log.c