diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-20 00:17:20 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-03-01 12:59:05 +0100 |
commit | afade2bc00641f0889e615d91a6882972b7e69b2 (patch) | |
tree | d649dcf7a633168f0cbf3ba3f4b451221a7a9add /vdservice | |
parent | b1e2f1a8ed7e91b99823d21d7f9ada6b19f40822 (diff) |
mingw: fix format string for wchar_t
%ls (or %S) must be used to printf a wchar_t *
Diffstat (limited to 'vdservice')
-rw-r--r-- | vdservice/virtio_vdi_port.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdservice/virtio_vdi_port.cpp b/vdservice/virtio_vdi_port.cpp index c33cee0..31a3862 100644 --- a/vdservice/virtio_vdi_port.cpp +++ b/vdservice/virtio_vdi_port.cpp @@ -69,7 +69,7 @@ bool VirtioVDIPort::init() _handle = CreateFile(VIOSERIAL_PORT_PATH, GENERIC_READ | GENERIC_WRITE , 0, NULL,
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
if (_handle == INVALID_HANDLE_VALUE) {
- vd_printf("CreateFile() %s failed: %lu", VIOSERIAL_PORT_PATH, GetLastError());
+ vd_printf("CreateFile() %ls failed: %lu", VIOSERIAL_PORT_PATH, GetLastError());
return false;
}
_write.overlap.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
|