summary refs log tree commit diff stats
path: root/chardev/char-pipe.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-03-09 13:51:14 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-03-09 13:51:14 +0000
commitdee65a00d1e6c255c9c888e47a692803d60dc6ca (patch)
tree8e425557553125d5417687742fedb455fde23c5a /chardev/char-pipe.c
parent7a5853cec479a448edae0fb2aaf4e2f78c9c774d (diff)
parentd1eddab86f92e7e060c8a473695c7f24ec00c9ab (diff)
downloadfocaccia-qemu-dee65a00d1e6c255c9c888e47a692803d60dc6ca.tar.gz
focaccia-qemu-dee65a00d1e6c255c9c888e47a692803d60dc6ca.zip
Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2020-03-09' into staging
Error reporting patches for 2020-03-09

# gpg: Signature made Mon 09 Mar 2020 12:37:04 GMT
# gpg:                using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg:                issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full]
# gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>" [full]
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653

* remotes/armbru/tags/pull-error-2020-03-09:
  qga: Fix a memory leak
  qga: Improve error report by calling error_setg_win32()
  util/osdep: Improve error report by calling error_setg_win32()
  chardev: Improve error report by calling error_setg_win32()

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'chardev/char-pipe.c')
-rw-r--r--chardev/char-pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-pipe.c b/chardev/char-pipe.c
index 94d714ffcd..fd12c9e63b 100644
--- a/chardev/char-pipe.c
+++ b/chardev/char-pipe.c
@@ -70,7 +70,7 @@ static int win_chr_pipe_init(Chardev *chr, const char *filename,
                               MAXCONNECT, NSENDBUF, NRECVBUF, NTIMEOUT, NULL);
     g_free(openname);
     if (s->file == INVALID_HANDLE_VALUE) {
-        error_setg(errp, "Failed CreateNamedPipe (%lu)", GetLastError());
+        error_setg_win32(errp, GetLastError(), "Failed CreateNamedPipe");
         s->file = NULL;
         goto fail;
     }