From f50d7325f8c9519029425f86fb179b48cd3f6179 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Thu, 6 Dec 2018 11:16:25 -0700 Subject: [PATCH] thread: Fix check that prevented a debug log from printing Change-Id: I4947c8fae27e9f5fcd282d0ef89accf6aba238da Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/436396 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/thread/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thread/thread.c b/lib/thread/thread.c index d4028400f..a6ce5ac08 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -380,7 +380,7 @@ spdk_thread_poll(struct spdk_thread *thread, uint32_t max_msgs) } #ifdef DEBUG - if (rc == -1) { + if (poller_rc == -1) { SPDK_DEBUGLOG(SPDK_LOG_THREAD, "Poller %p returned -1\n", poller); } #endif