From: Fred Morcos Date: Mon, 7 Mar 2022 08:44:42 +0000 (+0100) Subject: Fix printf format string X-Git-Tag: rec-4.7.0-beta1~56^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc00c1f00872d6afe516a7589175bca7568fe23a;p=thirdparty%2Fpdns.git Fix printf format string --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 76d3749a3d..9db36d3c45 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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; @@ -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;