summaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-02-06 21:27:26 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-06 16:35:20 -0600
commit543f34126b7bfc85b05d0e371e3ce0695444f433 (patch)
treea1daca7381d4f1843e7858eba8fafed8f4774ad3 /hmp-commands.hx
parentde1cc36e1039faf65b1739d28bef9f2a4e230eb6 (diff)
downloadqemu-543f34126b7bfc85b05d0e371e3ce0695444f433.tar.gz
hmp: make memchar-read escape ASCII control chars except \n and \t
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 66ec716e03..4c100d7369 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -869,6 +869,8 @@ STEXI
@findex ringbuf_read
Read and print up to @var{size} bytes from ring buffer character
device @var{device}.
+Certain non-printable characters are printed \uXXXX, where XXXX is the
+character code in hexadecimal. Character \ is printed \\.
Bug: can screw up when the buffer contains invalid UTF-8 sequences,
NUL characters, after the ring buffer lost data, and when reading
stops because the size limit is reached.