Skip to content

Commit

Permalink
common/TrackedOp.cc: fix format qualifiers for uint
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Apr 13, 2018
1 parent 84b8387 commit e4852e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/TrackedOp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ OpTracker::OpTracker(CephContext *cct_, bool tracking, uint32_t num_shards):
lock("OpTracker::lock"), cct(cct_) {
for (uint32_t i = 0; i < num_optracker_shards; i++) {
char lock_name[32] = {0};
snprintf(lock_name, sizeof(lock_name), "%s:%d", "OpTracker::ShardedLock", i);
snprintf(lock_name, sizeof(lock_name), "%s:%" PRIu32, "OpTracker::ShardedLock", i);
ShardedTrackingData* one_shard = new ShardedTrackingData(lock_name);
sharded_in_flight_list.push_back(one_shard);
}
Expand Down

0 comments on commit e4852e2

Please sign in to comment.