41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
|
|
From 4ca8ac93bd2c328c80841540b3b5e297ff24d3c9 Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Wed, 5 Feb 2025 06:02:50 -0500
|
||
|
|
Subject: [PATCH] hw/usb/hcd-ehci: Fix debug printf format string
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cheery-pick from a40b5f32867294b7c855d2e4b98a4c2d32b3be28
|
||
|
|
|
||
|
|
The variable is uint64_t so needs %PRIu64 instead of %d.
|
||
|
|
|
||
|
|
Fixes: 3ae7eb88c47 ("ehci: fix overflow in frame timer code")
|
||
|
|
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
|
||
|
|
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
||
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
||
|
|
Message-ID: <20250124124713.64F8C4E6031@zero.eik.bme.hu>
|
||
|
|
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
||
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
hw/usb/hcd-ehci.c | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
|
||
|
|
index 7b093acd98..fa8c7af5c8 100644
|
||
|
|
--- a/hw/usb/hcd-ehci.c
|
||
|
|
+++ b/hw/usb/hcd-ehci.c
|
||
|
|
@@ -2287,7 +2287,8 @@ 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 %"PRIu64" uframes\n",
|
||
|
|
+ skipped_uframes);
|
||
|
|
}
|
||
|
|
|
||
|
|
for (i = 0; i < uframes; i++) {
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|