@@ -1311,9 +1311,16 @@ static int do_system_reset(Monitor *mon, const QDict *qdict, QObject **ret_data)
return 0;
}
-static void do_system_powerdown(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_powerdown(): Issue a machine powerdown
+ *
+ * return always succeed.
+ */
+static int do_system_powerdown(Monitor *mon, const QDict *qdict,
+ QObject **ret_data)
{
qemu_system_powerdown_request();
+ return 0;
}
#if defined(TARGET_I386)
@@ -478,7 +478,7 @@ ETEXI
.name = "system_powerdown",
.args_type = "",
.handler = do_system_powerdown,
- .user_print = NULL,
+ .user_print = monitor_print_nothing,
.params = "",
.help = "send system power down event"
},
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor.c | 9 ++++++++- qemu-monitor.hx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-)