diff mbox

xen-usb: Fix 32bit build

Message ID 20160623110829.22671-1-anthony.perard@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anthony PERARD June 23, 2016, 11:08 a.m. UTC
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 hw/usb/xen-usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jürgen Groß June 23, 2016, 11:43 a.m. UTC | #1
On 23/06/16 13:08, Anthony PERARD wrote:
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Reviewed-by: Juergen Gross <jgross@suse.com>

> ---
>  hw/usb/xen-usb.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/usb/xen-usb.c b/hw/usb/xen-usb.c
> index 0fd34c6..7bed0ce 100644
> --- a/hw/usb/xen-usb.c
> +++ b/hw/usb/xen-usb.c
> @@ -253,7 +253,8 @@ static int usbback_init_packet(struct usbback_req *usbback_req)
>  
>      case USBIF_PIPE_TYPE_CTRL:
>          packet->parameter = *(uint64_t *)usbback_req->req.u.ctrl;
> -        TR_REQ(xendev, "ctrl parameter: %lx, buflen: %x\n", packet->parameter,
> +        TR_REQ(xendev, "ctrl parameter: %"PRIx64", buflen: %x\n",
> +               packet->parameter,
>                 usbback_req->req.buffer_length);
>          break;
>  
>
Stefano Stabellini July 6, 2016, 9:52 a.m. UTC | #2
On Thu, 23 Jun 2016, Juergen Gross wrote:
> On 23/06/16 13:08, Anthony PERARD wrote:
> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> 
> Reviewed-by: Juergen Gross <jgross@suse.com>

Added to my queue


> > ---
> >  hw/usb/xen-usb.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/hw/usb/xen-usb.c b/hw/usb/xen-usb.c
> > index 0fd34c6..7bed0ce 100644
> > --- a/hw/usb/xen-usb.c
> > +++ b/hw/usb/xen-usb.c
> > @@ -253,7 +253,8 @@ static int usbback_init_packet(struct usbback_req *usbback_req)
> >  
> >      case USBIF_PIPE_TYPE_CTRL:
> >          packet->parameter = *(uint64_t *)usbback_req->req.u.ctrl;
> > -        TR_REQ(xendev, "ctrl parameter: %lx, buflen: %x\n", packet->parameter,
> > +        TR_REQ(xendev, "ctrl parameter: %"PRIx64", buflen: %x\n",
> > +               packet->parameter,
> >                 usbback_req->req.buffer_length);
> >          break;
> >  
> > 
> 
>
diff mbox

Patch

diff --git a/hw/usb/xen-usb.c b/hw/usb/xen-usb.c
index 0fd34c6..7bed0ce 100644
--- a/hw/usb/xen-usb.c
+++ b/hw/usb/xen-usb.c
@@ -253,7 +253,8 @@  static int usbback_init_packet(struct usbback_req *usbback_req)
 
     case USBIF_PIPE_TYPE_CTRL:
         packet->parameter = *(uint64_t *)usbback_req->req.u.ctrl;
-        TR_REQ(xendev, "ctrl parameter: %lx, buflen: %x\n", packet->parameter,
+        TR_REQ(xendev, "ctrl parameter: %"PRIx64", buflen: %x\n",
+               packet->parameter,
                usbback_req->req.buffer_length);
         break;