Skip to content

Commit

Permalink
ews: resolve 2 instances of -Wformat
Browse files Browse the repository at this point in the history
exch/ews/context.cpp:484:85: warning: format '%lu' expects argument of type
'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long
unsigned int'} [-Wformat=]
exch/ews/context.cpp:528:85: warning:..
  • Loading branch information
jengelh committed Aug 31, 2023
1 parent b9d234f commit fd91474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exch/ews/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ void EWSContext::loadSpecial(const std::string& dir, uint64_t fid, uint64_t mid,
TARRAY_SET rcpts;
if(!plugin.exmdb.get_message_rcpts(dir.c_str(), mid, &rcpts))
{
mlog(LV_ERR, "[ews] failed to load message recipients (%s:%lu)", dir.c_str(), mid);
mlog(LV_ERR, "[ews] failed to load message recipients (%s:%llu)",
dir.c_str(), static_cast<unsigned long long>(mid));
return;
}
for(TPROPVAL_ARRAY** tps = rcpts.pparray; tps < rcpts.pparray+rcpts.count; ++tps)
Expand Down Expand Up @@ -525,7 +526,8 @@ void EWSContext::loadSpecial(const std::string& dir, uint64_t fid, uint64_t mid,
TARRAY_SET rcpts;
if(!plugin.exmdb.get_message_rcpts(dir.c_str(), mid, &rcpts))
{
mlog(LV_ERR, "[ews] failed to load calItem recipients (%s:%lu)", dir.c_str(), mid);
mlog(LV_ERR, "[ews] failed to load calItem recipients (%s:%llu)",
dir.c_str(), static_cast<unsigned long long>(mid));
return;
}
for(TPROPVAL_ARRAY** tps = rcpts.pparray; tps < rcpts.pparray+rcpts.count; ++tps)
Expand Down

0 comments on commit fd91474

Please sign in to comment.