diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-07-27 17:51:03 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-08-13 14:17:53 -0300 |
commit | df1e608a01eb0d55d6639d97f575dba37a44ac4a (patch) | |
tree | ba00f049fb700fd96202ef952fe600e7a05b3093 /error.h | |
parent | 7795b166d9d1e2b33d428f5acab6d0d5e617ee91 (diff) | |
download | qemu-df1e608a01eb0d55d6639d97f575dba37a44ac4a.zip qemu-df1e608a01eb0d55d6639d97f575dba37a44ac4a.tar.gz qemu-df1e608a01eb0d55d6639d97f575dba37a44ac4a.tar.bz2 |
error, qerror: pass desc string to error calls
This commit changes all QERR_ macros to contain a human message (ie.
the desc string found in qerr_table[]) instead of a json dictionary
in string format.
Before this commit, error_set() and qerror_report() would receive
a json dictionary in string format and build a qobject from it. Now,
both function receive a human message instead and the qobject is
not built anymore.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,15 +17,15 @@ #include <stdbool.h> /** - * A class representing internal errors within QEMU. An error has a string - * typename and optionally a set of named string parameters. + * A class representing internal errors within QEMU. An error has a ErrorClass + * code and a human message. */ typedef struct Error Error; /** - * Set an indirect pointer to an error given a printf-style format parameter. - * Currently, qerror.h defines these error formats. This function is not - * meant to be used outside of QEMU. + * Set an indirect pointer to an error given a ErrorClass value and a + * printf-style human message. This function is not meant to be used outside + * of QEMU. */ void error_set(Error **err, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(3, 4); |