[api] Fix format warnings in dump (#11999)

This commit is contained in:
Jonathan Swoboda
2025-11-19 12:58:47 -05:00
committed by GitHub
parent 73bc5252a1
commit 61cef0a75c
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ static void dump_field(std::string &out, const char *field_name, float value, in
static void dump_field(std::string &out, const char *field_name, uint64_t value, int indent = 2) {
char buffer[64];
append_field_prefix(out, field_name, indent);
snprintf(buffer, 64, "%llu", value);
snprintf(buffer, 64, "%" PRIu64, value);
append_with_newline(out, buffer);
}