Skip to content

Commit 9552c55

Browse files
committed
fixed:kbe/src/lib/thread/threadpool.hpp:202: 错误:格式‘%x’需要类型‘unsigned int’,但实参 3 的类型为‘KBEngine::thread::TPTask*
1 parent 2d96dca commit 9552c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kbe/src/lib/thread/threadpool.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ class TPThread
195195
输出线程工作状态
196196
主要提供给watcher使用
197197
*/
198-
std::string printWorkState()
198+
virtual std::string printWorkState()
199199
{
200200
char buf[256];
201201
lock();
202-
sprintf(buf, "task=%x,state=%d", currTask_, state_);
202+
sprintf(buf, "task=%p,state=%d", currTask_, state_);
203203
unlock();
204204
return buf;
205205
}

0 commit comments

Comments
 (0)