diff options
author | Julien Grall <julien.grall@citrix.com> | 2015-06-16 20:10:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-21 09:40:40 -0700 |
commit | 6c10127d91bdc80e02938085d03c232ae3118ad5 (patch) | |
tree | 3769eb50fa2bd6dec3cf012a830dc172d7dfde5b /drivers/net/xen-netfront.c | |
parent | d2a9ec6472650c49ac3f285637b9c04b53f11ae6 (diff) | |
download | linux-6c10127d91bdc80e02938085d03c232ae3118ad5.tar.gz linux-6c10127d91bdc80e02938085d03c232ae3118ad5.tar.bz2 linux-6c10127d91bdc80e02938085d03c232ae3118ad5.zip |
net/xen-netfront: Correct printf format in xennet_get_responses
rx->status is an int16_t, print it using %d rather than %u in order to
have a meaningful value when the field is negative.
Also use %u rather than %x for rx->offset.
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index c89ca26e254d..56d8afd11077 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -733,7 +733,7 @@ static int xennet_get_responses(struct netfront_queue *queue, if (unlikely(rx->status < 0 || rx->offset + rx->status > PAGE_SIZE)) { if (net_ratelimit()) - dev_warn(dev, "rx->offset: %x, size: %u\n", + dev_warn(dev, "rx->offset: %u, size: %d\n", rx->offset, rx->status); xennet_move_rx_slot(queue, skb, ref); err = -EINVAL; |