From: Danny Al-Gaaf Date: Fri, 13 Oct 2017 19:28:30 +0000 (+0200) Subject: async/Stack.cc: fix conversion specifier X-Git-Tag: v13.0.1~358^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c6e4ea9cf0e5df2fa51f58370e387dccfa1676d6;p=ceph.git 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 --- diff --git a/src/msg/async/Stack.cc b/src/msg/async/Stack.cc index a03ac340aa0..895cc82ee5a 100644 --- a/src/msg/async/Stack.cc +++ b/src/msg/async/Stack.cc @@ -39,7 +39,7 @@ std::function 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();