@@ -1302,7 +1302,11 @@ static void do_system_reset(Monitor *mon, const QDict *qdict,
qemu_system_reset_request();
}
-static void do_system_powerdown(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_powerdown(): Issue a machine powerdown
+ */
+static void do_system_powerdown(Monitor *mon, const QDict *qdict,
+ QObject **ret_data)
{
qemu_system_powerdown_request();
}
@@ -500,7 +500,7 @@ ETEXI
.name = "system_powerdown",
.args_type = "",
.handler = do_system_powerdown,
- .user_print = NULL,
+ .user_print = monitor_user_noop,
.params = "",
.help = "send system power down event"
},
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor.c | 6 +++++- qemu-monitor.hx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)