Revision cda9046b hw/xen_nic.c

b/hw/xen_nic.c
243 243
    return 1;
244 244
}
245 245

  
246
static void net_rx_packet(void *opaque, const uint8_t *buf, int size)
246
static void net_rx_packet(void *opaque, const uint8_t *buf, size_t size)
247 247
{
248 248
    struct XenNetDev *netdev = opaque;
249 249
    netif_rx_request_t rxreq;
......
262 262
	return;
263 263
    }
264 264
    if (size > XC_PAGE_SIZE - NET_IP_ALIGN) {
265
	xen_be_printf(&netdev->xendev, 0, "packet too big (%d > %ld)",
266
		      size, XC_PAGE_SIZE - NET_IP_ALIGN);
265
	xen_be_printf(&netdev->xendev, 0, "packet too big (%lu > %ld)",
266
		      (unsigned long)size, XC_PAGE_SIZE - NET_IP_ALIGN);
267 267
	return;
268 268
    }
269 269

  

Also available in: Unified diff