]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qga/channel-win32.c
xen-block: only advertize discard to the frontend when it is enabled...
[mirror_qemu.git] / qga / channel-win32.c
index 7e6dc4d26f462ca329b3850c5938c69b612e9190..c86f4388dbc3a1a33727be76e3f566984ec982a5 100644 (file)
@@ -1,8 +1,8 @@
 #include "qemu/osdep.h"
 #include <windows.h>
 #include <io.h>
-#include "qga/guest-agent-core.h"
-#include "qga/channel.h"
+#include "guest-agent-core.h"
+#include "channel.h"
 
 typedef struct GAChannelReadState {
     guint thread_id;
@@ -302,7 +302,8 @@ static gboolean ga_channel_open(GAChannel *c, GAChannelMethod method,
                            OPEN_EXISTING,
                            FILE_FLAG_NO_BUFFERING | FILE_FLAG_OVERLAPPED, NULL);
     if (c->handle == INVALID_HANDLE_VALUE) {
-        g_critical("error opening path %s", newpath);
+        g_critical("error opening path %s: %s", newpath,
+                   g_win32_error_message(GetLastError()));
         return false;
     }