diff --git a/src/disk.c b/src/disk.c index acb957d..a855a92 100644 --- a/src/disk.c +++ b/src/disk.c @@ -12,7 +12,7 @@ bool create_empty_disk(const char* disk, uint64_t size) { char* stderrb = NULL; // Create an empty disk - int result = execute(&stdoutb, &stderrb, "qemu-img", "create", "-c", "-f", "qcow2", disk, format("%lu", size), NULL); + int result = execute(&stdoutb, &stderrb, "qemu-img", "create", "-c", "-f", "qcow2", disk, format("%" PRIu64, size), NULL); // Check if the command was successful if (result != 0) { @@ -21,7 +21,7 @@ bool create_empty_disk(const char* disk, uint64_t size) { for (size_t i = 0; i < length; i++) if (stderrb[i] == '\n') stderrb[i] = ' '; - log_msg(LOG_ERROR, "Failed to create the empty disk %s (%s)", disk, stderrb); + log_msg(LOG_ERROR, "Failed to create the empty disk %s (%s).", disk, stderrb); free(stdoutb); free(stderrb); @@ -49,7 +49,7 @@ bool create_backed_disk(const char* disk, const char* backing) { for (size_t i = 0; i < length; i++) if (stderrb[i] == '\n') stderrb[i] = ' '; - log_msg(LOG_ERROR, "Failed to create the backed disk %s (%s)", disk, stderrb); + log_msg(LOG_ERROR, "Failed to create the backed disk %s (%s).", disk, stderrb); free(stdoutb); free(stderrb); @@ -77,7 +77,7 @@ char* get_backing_file(const char* disk) { for (size_t i = 0; i < length; i++) if (stderrb[i] == '\n') stderrb[i] = ' '; - log_msg(LOG_ERROR, "Failed to get the backing file of the disk %s (%s)", disk, stderrb); + log_msg(LOG_ERROR, "Failed to get the backing file of the disk %s (%s).", disk, stderrb); free(stdoutb); free(stderrb);