Fix some typos
This commit is contained in:
parent
7d826ccb99
commit
ee79d7c87d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user