Skip to content

Commit

Permalink
Fix printf format string
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmorcos committed Mar 15, 2022
1 parent 95b87a0 commit dc00c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdns/syncres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ uint64_t SyncRes::doDumpFailedServers(int fd)
count++;
char tmp[26];
ctime_r(&i.last, tmp);
fprintf(fp.get(), "%s\t%llu\t%s", i.key.toString().c_str(), i.value, tmp);
fprintf(fp.get(), "%s\t%" PRIu64 "\t%s", i.key.toString().c_str(), i.value, tmp);
}

return count;
Expand All @@ -729,7 +729,7 @@ uint64_t SyncRes::doDumpNonResolvingNS(int fd)
count++;
char tmp[26];
ctime_r(&i.last, tmp);
fprintf(fp.get(), "%s\t%llu\t%s", i.key.toString().c_str(), i.value, tmp);
fprintf(fp.get(), "%s\t%" PRIu64 "\t%s", i.key.toString().c_str(), i.value, tmp);
}

return count;
Expand Down

0 comments on commit dc00c1f

Please sign in to comment.