]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: fix format specifier for unsigned value id 11145/head
authorWeibing Zhang <atheism.zhang@gmail.com>
Tue, 20 Sep 2016 06:54:40 +0000 (14:54 +0800)
committerWeibing Zhang <atheism.zhang@gmail.com>
Tue, 20 Sep 2016 06:54:40 +0000 (14:54 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/msg/async/Stack.h

index 960da6368efcff3852994cdf181ef15f5bf597ce..cfcca10c37f3537571f3783f84348dc2d2fab699 100644 (file)
@@ -216,7 +216,7 @@ class Worker {
   Worker(CephContext *c, unsigned i)
     : cct(c), perf_logger(NULL), id(i), references(0), center(c) {
     char name[128];
-    sprintf(name, "AsyncMessenger::Worker-%d", id);
+    sprintf(name, "AsyncMessenger::Worker-%u", id);
     // initialize perf_logger
     PerfCountersBuilder plb(cct, name, l_msgr_first, l_msgr_last);