From dc00c1f00872d6afe516a7589175bca7568fe23a Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Mon, 7 Mar 2022 09:44:42 +0100 Subject: [PATCH] Fix printf format string --- pdns/syncres.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2