Skip to contentSkip to conversation

monitor: auto-completion fixes

PATCH New Luiz Capitulino 1 participant 3 messages Sep 4, 2009

lore
Share & tools
lore
#0 lore raw

cover monitor: auto-completion fixes

Hi there,

This series contains two minor auto-completion fixes for
'commit' and 'wavcapture' Monitor commands.

#1 lore raw

PATCH 1/2 monitor: Fix do_commit() argument type

Currently do_commit() argument type is 's' (string), but it should be 'B' (block), this way 'commit' gets command completion.

---
 qemu-monitor.hx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-monitor.hx +1 -1
index 9f91873..c176f2c 100644
@@ -15,7 +15,7 @@ STEXI
 Show the help for all commands or just for command @var{cmd}.
 ETEXI
 
-    { "commit", "device:s", do_commit,
+    { "commit", "device:B", do_commit,
       "device|all", "commit changes to the disk images (if -snapshot is used) or backing files" },
 STEXI
 @item commit
Signature · 1 line
1.6.4.2.253.g0b1fac
#2 lore raw

PATCH 2/2 monitor: Fix do_wav_capture() argument type

In reply to Luiz Capitulino

Currently do_wav_capture() path's argument type is 's' (string), but it should be 'F' (filename), this way 'wavcapture' gets command completion.

---
 qemu-monitor.hx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-monitor.hx +1 -1
index c176f2c..6aa99ce 100644
@@ -402,7 +402,7 @@ info mice
 ETEXI
 
 #ifdef HAS_AUDIO
-    { "wavcapture", "path:s,freq:i?,bits:i?,nchannels:i?", do_wav_capture,
+    { "wavcapture", "path:F,freq:i?,bits:i?,nchannels:i?", do_wav_capture,
       "path [frequency [bits [channels]]]",
       "capture audio to a wave file (default frequency=44100 bits=16 channels=2)" },
 #endif
Signature · 1 line
1.6.4.2.253.g0b1fac