diff --git a/test/ctrl/tool.cpp b/test/ctrl/tool.cpp index 6074886da8..e5bbaefc3b 100644 --- a/test/ctrl/tool.cpp +++ b/test/ctrl/tool.cpp @@ -310,7 +310,7 @@ static inline bool dump_context_entry(context_entry_t* entry) { // Dump waiting entries static inline void dump_wait_list() { auto it = wait_list->begin(); - auto end = wait_list->begin(); + auto end = wait_list->end(); while (it != end) { auto cur = it++; if (dump_context_entry(*cur)) {