[Spice-devel] [PATCH spice-gtk 39/44] fixup! usb-redir: add implementation of emulated CD device

Frediano Ziglio fziglio at redhat.com
Tue Jul 30 12:03:26 UTC 2019


Use GLib string formatting syntax to fix a warning on Windows
---
 src/usb-device-cd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/usb-device-cd.c b/src/usb-device-cd.c
index 7ef5bca4..ba8e1bff 100644
--- a/src/usb-device-cd.c
+++ b/src/usb-device-cd.c
@@ -375,7 +375,7 @@ static gboolean load_lun(UsbCd *d, int unit, gboolean load)
             media_params.size % DVD_DEV_BLOCK_SIZE == 0) {
             media_params.block_size = DVD_DEV_BLOCK_SIZE;
         }
-        SPICE_DEBUG("%s: loading %s, size %" PRIu64 ", block %u",
+        SPICE_DEBUG("%s: loading %s, size %" G_GUINT64_FORMAT ", block %u",
                     __FUNCTION__, d->units[unit].filename, media_params.size, media_params.block_size);
 
         b = !cd_usb_bulk_msd_load(d->msc, unit, &media_params);
@@ -593,7 +593,7 @@ void cd_usb_bulk_msd_read_complete(void *user_data,
                 break;
             }
 
-            SPICE_DEBUG("%s: responding %" PRIu64 " with len %u out of %u, status %d",
+            SPICE_DEBUG("%s: responding %" G_GUINT64_FORMAT " with len %u out of %u, status %d",
                         __FUNCTION__, d->read_bulk[nread].id, max_len,
                         length, d->read_bulk[nread].hout.status);
             usbredirparser_send_bulk_packet(d->parser, d->read_bulk[nread].id,
-- 
2.20.1



More information about the Spice-devel mailing list