]> Git Repo - qemu.git/commitdiff
xhci: fix bad print specifier
authorHervé Poussineau <[email protected]>
Thu, 21 Feb 2013 21:58:08 +0000 (22:58 +0100)
committerBlue Swirl <[email protected]>
Sat, 23 Feb 2013 09:39:41 +0000 (09:39 +0000)
This fixes the following compilation error:
hw/usb/hcd-xhci.c:1156:17: error: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 4 has type ‘unsigned int’

Signed-off-by: Hervé Poussineau <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
hw/usb/hcd-xhci.c

index 5796102f3a289bc074170b2632e97172954aa261..07afdeef5b8d074f066e6f5003fed512fb0a4033 100644 (file)
@@ -1152,8 +1152,8 @@ static XHCIStreamContext *xhci_find_stream(XHCIEPContext *epctx,
 
     if (sctx->sct == -1) {
         xhci_dma_read_u32s(epctx->xhci, sctx->pctx, ctx, sizeof(ctx));
-        fprintf(stderr, "%s: init sctx #%d @ %lx: %08x %08x\n", __func__,
-                streamid, sctx->pctx, ctx[0], ctx[1]);
+        fprintf(stderr, "%s: init sctx #%d @ " DMA_ADDR_FMT ": %08x %08x\n",
+                __func__, streamid, sctx->pctx, ctx[0], ctx[1]);
         sct = (ctx[0] >> 1) & 0x07;
         if (epctx->lsa && sct != 1) {
             *cc_error = CC_INVALID_STREAM_TYPE_ERROR;
This page took 0.033428 seconds and 4 git commands to generate.