diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-18 16:35:08 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-01-13 15:16:16 +0100 |
commit | f4d0064afcff4c38b379800674938cde8f069dcd (patch) | |
tree | 2fdb4fec96764cf47a103a47ee6169bcebe14d82 /util/qemu-error.c | |
parent | 782886719822c956e800dfb9c0665e2b301cb1fb (diff) | |
download | qemu-f4d0064afcff4c38b379800674938cde8f069dcd.tar.gz qemu-f4d0064afcff4c38b379800674938cde8f069dcd.tar.bz2 qemu-f4d0064afcff4c38b379800674938cde8f069dcd.zip |
error: Improve documentation
While there, tighten error_append_hint()'s assertion.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1450452927-8346-6-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'util/qemu-error.c')
-rw-r--r-- | util/qemu-error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/qemu-error.c b/util/qemu-error.c index c1574bb348..ecf5708478 100644 --- a/util/qemu-error.c +++ b/util/qemu-error.c @@ -200,8 +200,8 @@ static void error_print_loc(void) bool enable_timestamp_msg; /* * Print an error message to current monitor if we have one, else to stderr. - * Format arguments like vsprintf(). The result should not contain - * newlines. + * Format arguments like vsprintf(). The resulting message should be + * a single phrase, with no newline or trailing punctuation. * Prepend the current location and append a newline. * It's wrong to call this in a QMP monitor. Use error_setg() there. */ @@ -224,8 +224,8 @@ void error_vreport(const char *fmt, va_list ap) /* * Print an error message to current monitor if we have one, else to stderr. - * Format arguments like sprintf(). The result should not contain - * newlines. + * Format arguments like sprintf(). The resulting message should be a + * single phrase, with no newline or trailing punctuation. * Prepend the current location and append a newline. * It's wrong to call this in a QMP monitor. Use error_setg() there. */ |