The return value in the docstring did not match the return value in the code (see plugins/api.c).
Signed-off-by: Florian Hofhammer <[email protected]> --- include/qemu/qemu-plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 1f25fb2b40..def6693a17 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -1002,7 +1002,7 @@ int qemu_plugin_read_register(struct qemu_plugin_register *handle, * Attempting to write a register with @buf smaller than the register size * will result in a crash or other undesired behavior. * - * Returns the number of bytes written. On failure returns 0. + * Returns the number of bytes written. On failure returns -1. */ QEMU_PLUGIN_API int qemu_plugin_write_register(struct qemu_plugin_register *handle, -- 2.51.0
