X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fcollectors.c;h=919fa1b8da5e31c877817e1cfd78ac262368290b;hb=10a89ef04df5669c5cdd02f786150a7ab8454e01;hp=14572db9c73c686869c5894770a58e73e570f40f;hpb=5fcbed7479c5f1d2cc08c3f544f10dbbe8ec0d90;p=sliver-openvswitch.git diff --git a/ofproto/collectors.c b/ofproto/collectors.c index 14572db9c..919fa1b8d 100644 --- a/ofproto/collectors.c +++ b/ofproto/collectors.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,7 +70,7 @@ collectors_create(const struct sset *targets, uint16_t default_port, static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); VLOG_WARN_RL(&rl, "couldn't open connection to collector %s (%s)", - name, strerror(error)); + name, ovs_strerror(error)); if (!retval) { retval = error; } @@ -113,7 +113,7 @@ collectors_send(const struct collectors *c, const void *payload, size_t n) static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); if (send(c->fds[i], payload, n, 0) == -1) { VLOG_WARN_RL(&rl, "sending to collector failed: %s", - strerror(errno)); + ovs_strerror(errno)); } } }