From: Giuseppe Lettieri Date: Tue, 26 Nov 2013 16:04:33 +0000 (+0100) Subject: fixed coding style X-Git-Tag: sliver-openvswitch-2.0.90-1~2 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f263172c99fd0a72c3f6666ffbaeaab786a3f1a8 fixed coding style --- diff --git a/lib/netdev-pltap.c b/lib/netdev-pltap.c index 00181ab3b..46ab2fd6a 100644 --- a/lib/netdev-pltap.c +++ b/lib/netdev-pltap.c @@ -562,7 +562,7 @@ netdev_pltap_send(struct netdev *netdev_, const void *buffer, size_t size) retval = writev(dev->fd, iov, 2); if (retval >= 0) { if (retval != size + 4) { - VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%zd bytes of %zu) on %s", + VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIdSIZE" bytes of %"PRIuSIZE") on %s", retval, size + 4, netdev_get_name(netdev_)); } return 0; diff --git a/lib/netdev-tunnel.c b/lib/netdev-tunnel.c index 3127e51be..a985ce905 100644 --- a/lib/netdev-tunnel.c +++ b/lib/netdev-tunnel.c @@ -274,7 +274,7 @@ netdev_tunnel_rx_recv(struct netdev_rx *rx_, void *buffer, size_t size) for (;;) { ssize_t retval; retval = recv(rx->fd, buffer, size, MSG_TRUNC); - VLOG_DBG("%s: recv(%"PRIxPTR", %zu, MSG_TRUNC) = %zd", + VLOG_DBG("%s: recv(%"PRIxPTR", %"PRIuSIZE", MSG_TRUNC) = %"PRIdSIZE, netdev_rx_get_name(rx_), (uintptr_t)buffer, size, retval); if (retval >= 0) { netdev->stats.rx_packets++; @@ -317,14 +317,14 @@ netdev_tunnel_send(struct netdev *netdev_, const void *buffer, size_t size) for (;;) { ssize_t retval; retval = send(dev->sockfd, buffer, size, 0); - VLOG_DBG("%s: send(%"PRIxPTR", %zu) = %zd", + VLOG_DBG("%s: send(%"PRIxPTR", %"PRIuSIZE") = %"PRIdSIZE, netdev_get_name(netdev_), (uintptr_t)buffer, size, retval); if (retval >= 0) { dev->stats.tx_packets++; dev->stats.tx_bytes += retval; if (retval != size) { - VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%zd bytes of " - "%zu) on %s", retval, size, netdev_get_name(netdev_)); + VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIdSIZE" bytes of " + "%"PRIuSIZE") on %s", retval, size, netdev_get_name(netdev_)); dev->stats.tx_errors++; } return 0;