From f263172c99fd0a72c3f6666ffbaeaab786a3f1a8 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Tue, 26 Nov 2013 17:04:33 +0100 Subject: [PATCH] fixed coding style --- lib/netdev-pltap.c | 2 +- lib/netdev-tunnel.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.43.0