async/Stack.cc: fix conversion specifier

Fix for:

[src/msg/async/Stack.cc:42]: (warning) %d in format string (no. 1)
 requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2017-10-13 21:28:30 +02:00
parent 1ad4a13171
commit c6e4ea9cf0

View File

@ -39,7 +39,7 @@ std::function<void ()> NetworkStack::add_thread(unsigned i)
Worker *w = workers[i];
return [this, w]() {
char tp_name[16];
sprintf(tp_name, "msgr-worker-%d", w->id);
sprintf(tp_name, "msgr-worker-%u", w->id);
ceph_pthread_setname(pthread_self(), tp_name);
const uint64_t EventMaxWaitUs = 30000000;
w->center.set_owner();