From c07a6a949b958fc1319813f6ec474c3fa56bcec2 Mon Sep 17 00:00:00 2001 From: Richael Zhuang Date: Wed, 12 May 2021 15:01:45 +0800 Subject: [PATCH] event/reactor: fix bug when showing core state It should print "intr" when target->in_interrupt==1. Change-Id: I74479da1dc66d937899fdf5c619cdf1a09951918 Signed-off-by: Richael Zhuang Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7857 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Aleksey Marchuk --- lib/event/reactor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event/reactor.c b/lib/event/reactor.c index 4b058ab322..fd886c3530 100644 --- a/lib/event/reactor.c +++ b/lib/event/reactor.c @@ -394,7 +394,7 @@ _reactor_set_interrupt_mode(void *arg1, void *arg2) assert(target != NULL); assert(target->in_interrupt != target->new_in_interrupt); SPDK_DEBUGLOG(reactor, "Do reactor set on core %u from %s to state %s\n", - target->lcore, !target->in_interrupt ? "intr" : "poll", target->new_in_interrupt ? "intr" : "poll"); + target->lcore, target->in_interrupt ? "intr" : "poll", target->new_in_interrupt ? "intr" : "poll"); target->in_interrupt = target->new_in_interrupt;