From ddc8c9c4413bf0f7397840a882b6f0c049b539c4 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sun, 5 Jun 2022 20:26:20 +0200 Subject: [PATCH] Use %s for JSON progress print. --- src/utils_progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_progress.c b/src/utils_progress.c index 55a3f497..c1ee24a1 100644 --- a/src/utils_progress.c +++ b/src/utils_progress.c @@ -241,7 +241,7 @@ static void log_progress_json(const char *device, uint64_t bytes, uint64_t devic if (r < 0 || (size_t)r >= sizeof(json) - 1) return; - log_std(json); + log_std("%s", json); } static void tools_time_progress_json(uint64_t device_size, uint64_t bytes, struct tools_progress_params *parms)