diff options
author | Markus Armbruster | 2020-07-07 18:05:49 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-07-10 15:18:08 +0200 |
commit | fdb0df8798dfe6f140f4febf7a1756a44ee2080e (patch) | |
tree | 31928512a905d4229fcba38f06179d69cccc831d /include/qom | |
parent | s390x/pci: Fix harmless mistake in zpci's property fid's setter (diff) | |
download | qemu-fdb0df8798dfe6f140f4febf7a1756a44ee2080e.tar.gz qemu-fdb0df8798dfe6f140f4febf7a1756a44ee2080e.tar.xz qemu-fdb0df8798dfe6f140f4febf7a1756a44ee2080e.zip |
qom: Use error_reportf_err() instead of g_printerr() in examples
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-22-armbru@redhat.com>
Diffstat (limited to 'include/qom')
-rw-r--r-- | include/qom/object.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/qom/object.h b/include/qom/object.h index 51f188137f..19c9adeebe 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -671,8 +671,7 @@ Object *object_new(const char *typename); * NULL); * * if (!obj) { - * g_printerr("Cannot create memory backend: %s\n", - * error_get_pretty(err)); + * error_reportf_err(err, "Cannot create memory backend: "); * } * </programlisting> * </example> @@ -739,8 +738,7 @@ void object_apply_compat_props(Object *obj); * NULL); * * if (!obj) { - * g_printerr("Cannot set properties: %s\n", - * error_get_pretty(err)); + * error_reportf_err(err, "Cannot set properties: "); * } * </programlisting> * </example> |