From: Ben Pfaff Date: Wed, 11 Jun 2014 16:14:54 +0000 (-0700) Subject: Fix log message weird suffixes. X-Git-Tag: v2.3~61 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=e9ff80c35ccb3251907559b00d09018393d03f62;p=cascardo%2Fovs.git Fix log message weird suffixes. I think these were leftovers from the removal of %z for MSVC that happened some time ago. VMware-BZ: 1265762 Signed-off-by: Ben Pfaff Acked-by: Pritesh Kothari --- diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 829118298..3ece3cb4c 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013 Gaetano Catalli. + * Copyright (c) 2011, 2013, 2014 Gaetano Catalli. * Copyright (c) 2013, 2014 YAMAMOTO Takashi. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -714,7 +714,7 @@ netdev_bsd_send(struct netdev *netdev_, struct ofpbuf *pkt, bool may_steal) } } } else if (retval != size) { - VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIuSIZE"d bytes of " + VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIuSIZE" bytes of " "%"PRIuSIZE") on %s", retval, size, name); error = EMSGSIZE; } else { diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index c1d93237e..840022d77 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1125,7 +1125,7 @@ netdev_linux_send(struct netdev *netdev_, struct ofpbuf *pkt, bool may_steal) } return errno; } else if (retval != size) { - VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIuSIZE"d bytes of " + VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRIuSIZE" bytes of " "%"PRIuSIZE") on %s", retval, size, netdev_get_name(netdev_)); return EMSGSIZE; } else { diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index ef476f215..215ddc46d 100644 --- a/lib/netlink-socket.c +++ b/lib/netlink-socket.c @@ -347,7 +347,7 @@ nl_sock_recv__(struct nl_sock *sock, struct ofpbuf *buf, bool wait) if (retval < sizeof *nlmsghdr || nlmsghdr->nlmsg_len < sizeof *nlmsghdr || nlmsghdr->nlmsg_len > retval) { - VLOG_ERR_RL(&rl, "received invalid nlmsg (%"PRIuSIZE"d bytes < %"PRIuSIZE")", + VLOG_ERR_RL(&rl, "received invalid nlmsg (%"PRIuSIZE" bytes < %"PRIuSIZE")", retval, sizeof *nlmsghdr); return EPROTO; } diff --git a/lib/netlink.c b/lib/netlink.c index bbd6b6d41..c08a5574e 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -66,7 +66,7 @@ nl_msg_nlmsgerr(const struct ofpbuf *msg, int *errorp) struct nlmsgerr *err = ofpbuf_at(msg, NLMSG_HDRLEN, sizeof *err); int code = EPROTO; if (!err) { - VLOG_ERR_RL(&rl, "received invalid nlmsgerr (%"PRIu32"d bytes < %"PRIuSIZE"d)", + VLOG_ERR_RL(&rl, "received invalid nlmsgerr (%"PRIu32" bytes < %"PRIuSIZE")", ofpbuf_size(msg), NLMSG_HDRLEN + sizeof *err); } else if (err->error <= 0 && err->error > INT_MIN) { code = -err->error;