Skip to content

Commit 6f08bbf

Browse files
Fix build on mac by using correct format specifier (valkey-io#92)
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
1 parent fb9e9ec commit 6f08bbf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/json/dom.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ JValue rdbLoadJValue(load_params *params) {
15131513
return array;
15141514
}
15151515
default:
1516-
ValkeyModule_LogIOError(params->rdb, "error", "Invalid metadata code %lx", code);
1516+
ValkeyModule_LogIOError(params->rdb, "error", "Invalid metadata code %llx", code);
15171517
params->status = JSONUTIL_INVALID_RDB_FORMAT;
15181518
return JValue();
15191519
}

src/json/keytable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ struct KeyTable_Shard {
302302
if (duration == 0) duration = 1;
303303
uint64_t keys_per_second = (size / duration) * 1000;
304304
ValkeyModule_Log(nullptr, "notice",
305-
"Keytable Resize to %zu completed in %lu ms (%lu / sec)",
305+
"Keytable Resize to %zu completed in %llu ms (%llu / sec)",
306306
capacity, duration, keys_per_second);
307307
}
308308

0 commit comments

Comments
 (0)