Fix some build warnings

This commit is contained in:
Vitaliy Filippov
2023-04-28 00:44:27 +03:00
parent 2a2f4f6738
commit b94587ef0e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ void osd_t::print_slow()
int l = sizeof(alloc), n;
char *buf = alloc;
#define bufprintf(s, ...) { n = snprintf(buf, l, s, __VA_ARGS__); n = n < 0 ? 0 : n; buf += n; l -= n; }
bufprintf("[OSD %lu] Slow op %lx", osd_num, op);
bufprintf("[OSD %lu] Slow op %lx", osd_num, (unsigned long)op);
if (kv.second->osd_num)
{
bufprintf(" from peer OSD %lu (client %d)", kv.second->osd_num, kv.second->peer_fd);