]> git.proxmox.com Git - mirror_qemu.git/blobdiff - monitor/hmp-cmds.c
hmp: Improve sync-profile error message
[mirror_qemu.git] / monitor / hmp-cmds.c
index 6c559b48c8eac71eedba1951601b635ab966dd74..871898ac46b77dab291bd59d155703337376b3e6 100644 (file)
@@ -24,7 +24,6 @@
 #include "qapi/qapi-commands-control.h"
 #include "qapi/qapi-commands-misc.h"
 #include "qapi/qmp/qdict.h"
-#include "qapi/qmp/qerror.h"
 #include "qemu/cutils.h"
 #include "hw/intc/intc.h"
 #include "qemu/log.h"
@@ -138,7 +137,8 @@ void hmp_sync_profile(Monitor *mon, const QDict *qdict)
     } else {
         Error *err = NULL;
 
-        error_setg(&err, QERR_INVALID_PARAMETER, op);
+        error_setg(&err, "invalid parameter '%s',"
+                   " expecting 'on', 'off', or 'reset'", op);
         hmp_handle_error(mon, err);
     }
 }