From: Karel Zak Date: Fri, 12 Jan 2024 09:52:40 +0000 (+0100) Subject: libuuid: fix uint64_t printf and scanf format X-Git-Tag: v2.40-rc1~49^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa54895a4f689b89e95debd596c833db3c6f79bd;p=thirdparty%2Futil-linux.git libuuid: fix uint64_t printf and scanf format Signed-off-by: Karel Zak --- 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;