summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2023-08-14 09:31:25 -0700
committerDavid Marchand <david.marchand@redhat.com>2023-12-01 16:40:06 +0100
commite6e2701997bf71e538c84ca46b441cef1a077d4e (patch)
tree546f22d958ee115013b595f3cc18c6cf6ea035fb /lib
parent3ff028e2e775918f40ae6f93fa35c757e85a9196 (diff)
power: use a dynamic logtype for guest channel
DPDK libraries should not be reusing RTE_LOGTYPE_USER1 in lieu of doing proper logtype registration. Fixes: cd0d5547e873 ("power: vm communication channels in guest") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Morten Brørup <mb@smartsharesystems.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/power/guest_channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c
index 7b2ae0b650..cc05347425 100644
--- a/lib/power/guest_channel.c
+++ b/lib/power/guest_channel.c
@@ -17,7 +17,8 @@
#include "guest_channel.h"
-#define RTE_LOGTYPE_GUEST_CHANNEL RTE_LOGTYPE_USER1
+RTE_LOG_REGISTER_SUFFIX(guest_channel_logtype, guest_channel, INFO);
+#define RTE_LOGTYPE_GUEST_CHANNEL guest_channel_logtype
/* Timeout for incoming message in milliseconds. */
#define TIMEOUT 10