mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-17 05:40:13 +01:00
Use %s for JSON progress print.
This commit is contained in:
@@ -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)
|
if (r < 0 || (size_t)r >= sizeof(json) - 1)
|
||||||
return;
|
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)
|
static void tools_time_progress_json(uint64_t device_size, uint64_t bytes, struct tools_progress_params *parms)
|
||||||
|
|||||||
Reference in New Issue
Block a user