warning: osd/osd_types.cc:1716:76: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'version_t {aka long long unsigned int}' [-Wformat]
warning: osd/osd_types.cc:1716:76: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'version_t {aka long long unsigned int}' [-Wformat]
Signed-off-by: Sage Weil <sage@inktank.com>
string pg_log_entry_t::get_key_name() const
{
char key[40];
- snprintf(key, sizeof(key), "%010u.%020lu", version.epoch, version.version);
+ snprintf(key, sizeof(key), "%010u.%020llu", version.epoch, (long long unsigned)version.version);
return string(key);
}