qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] hw/usb/hcd-ehci: Fix debug printf format string


From: BALATON Zoltan
Subject: [PATCH] hw/usb/hcd-ehci: Fix debug printf format string
Date: Thu, 23 Jan 2025 22:48:31 +0100 (CET)

The variable is uint64_t so needs %ld instead of %d.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 hw/usb/hcd-ehci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 6c4c14c895..23b3e20fdb 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2287,7 +2287,7 @@ static void ehci_work_bh(void *opaque)
             ehci_update_frindex(ehci, skipped_uframes);
             ehci->last_run_ns += UFRAME_TIMER_NS * skipped_uframes;
             uframes -= skipped_uframes;
-            DPRINTF("WARNING - EHCI skipped %d uframes\n", skipped_uframes);
+            DPRINTF("WARNING - EHCI skipped %ld uframes\n", skipped_uframes);
         }
 
         for (i = 0; i < uframes; i++) {
-- 
2.30.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]