[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] netfront: correct printf format in xennet_get_responses
# HG changeset patch # User Julien Grall <julien.grall@xxxxxxxxxx> # Date 1441784943 -7200 # Node ID 9c891c830cddb69cca1cf6e908cafdfaa5e895af # Parent 8f6b99f4c45fbee6c5911fbd0835353b9de1fdeb 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@xxxxxxxxxx> Keep hex format for rx->offset, but make obvious it's hex. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 8f6b99f4c45f -r 9c891c830cdd drivers/xen/netfront/netfront.c --- a/drivers/xen/netfront/netfront.c Tue Jun 02 16:13:42 2015 +0200 +++ b/drivers/xen/netfront/netfront.c Wed Sep 09 09:49:03 2015 +0200 @@ -1175,7 +1175,7 @@ static int xennet_get_responses(struct n if (unlikely(rx->status < 0 || rx->offset + rx->status > PAGE_SIZE)) { if (net_ratelimit()) - WPRINTK("rx->offset: %x, size: %u\n", + WPRINTK("rx->offset: %#x, size: %d\n", rx->offset, rx->status); xennet_move_rx_slot(np, skb, ref); err = -EINVAL; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |