[PATCH] qga: fix typo in guest-file-read warning

Fabian Grünbichler posted 1 patch 1 week, 6 days ago
qga/commands.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] qga: fix typo in guest-file-read warning
Posted by Fabian Grünbichler 1 week, 6 days ago
seems to have been transformed from "read" to "write" during a refactor.

Fixes: ead83a136d54 "qga: Extract qmp_guest_file_read() to common commands.c"

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
Stumbled upon this while browsing through the code for unrelated reasons..

 qga/commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qga/commands.c b/qga/commands.c
index 5f20af25d3476ebda08989c91d82c22aafdf5fac..666341a909d2c0cbffb50761126f76f8508af163 100644
--- a/qga/commands.c
+++ b/qga/commands.c
@@ -626,7 +626,7 @@ GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count,
 
     read_data = guest_file_read_unsafe(gfh, count, errp);
     if (!read_data) {
-        slog("guest-file-write failed, handle: %" PRId64, handle);
+        slog("guest-file-read failed, handle: %" PRId64, handle);
     }
 
     return read_data;
Re: [PATCH] qga: fix typo in guest-file-read warning
Posted by Philippe Mathieu-Daudé 1 week, 6 days ago
On 9/10/26 11:16, Fabian Grünbichler wrote:
> seems to have been transformed from "read" to "write" during a refactor.
> 
> Fixes: ead83a136d54 "qga: Extract qmp_guest_file_read() to common commands.c"
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> ---
> Stumbled upon this while browsing through the code for unrelated reasons..
> 
>   qga/commands.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>