log: choose EAL log type on registration failure
authorThomas Monjalon <thomas@monjalon.net>
Tue, 6 Apr 2021 13:22:02 +0000 (15:22 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 8 Apr 2021 16:31:58 +0000 (18:31 +0200)
commitbd057ae47d221cb92ebe370f81d01d470c0325df
tree94e0d08fd897326d1e3642552c39c5d2a1249b47
parent56ea803e878e06ac1c7056165b960416666086f4
log: choose EAL log type on registration failure

In the unlikely case where something goes wrong
while registering a log type,
the fallback is to use the EAL log type.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
lib/librte_eal/include/rte_log.h