From fa54895a4f689b89e95debd596c833db3c6f79bd Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Jan 2024 10:52:40 +0100 Subject: [PATCH] libuuid: fix uint64_t printf and scanf format Signed-off-by: Karel Zak --- libuuid/src/gen_uuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c index 79e5e285c5..59e8c23f01 100644 --- a/libuuid/src/gen_uuid.c +++ b/libuuid/src/gen_uuid.c @@ -405,7 +405,7 @@ static int get_clock_cont(uint32_t *clock_high, if (st.st_size) { rewind(state_f); - if (fscanf(state_f, "cont: %lu\n", &last_clock_reg) != 1) + if (fscanf(state_f, "cont: %"SCNu64"\n", &last_clock_reg) != 1) goto error; } else last_clock_reg = clock_reg; @@ -431,7 +431,7 @@ static int get_clock_cont(uint32_t *clock_high, int l; rewind(state_f); - l = fprintf(state_f, "cont: %020lu \n", cl); + l = fprintf(state_f, "cont: %020"PRIu64" \n", cl); if (l < 30 || fflush(state_f)) goto error; saved_clock_reg = cl; -- 2.47.3