summaryrefslogtreecommitdiffstats
path: root/qemu-img.c
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 20:29:44 +0200
committerRichard Henderson2022-04-20 19:51:11 +0200
commitc5955f4ff4689b7a04cf0a1109fa97ce885876b4 (patch)
tree27a7af47ce5ee5469d49c2736f728a6ef646e7cd /qemu-img.c
parentutil/log: Return bool from qemu_set_log_filename (diff)
downloadqemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.tar.gz
qemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.tar.xz
qemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.zip
util/log: Pass Error pointer to qemu_set_log
Do not force exit within qemu_set_log; return bool and pass an Error value back up the stack as per usual. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-5-richard.henderson@linaro.org>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 116e058675..ef3224a9d4 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -5443,7 +5443,7 @@ int main(int argc, char **argv)
exit(1);
}
trace_init_file();
- qemu_set_log(LOG_TRACE);
+ qemu_set_log(LOG_TRACE, &error_fatal);
/* find the command */
for (cmd = img_cmds; cmd->name != NULL; cmd++) {