~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to ofproto/collectors.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
 
2
 * Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
70
70
            static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
71
71
 
72
72
            VLOG_WARN_RL(&rl, "couldn't open connection to collector %s (%s)",
73
 
                         name, strerror(error));
 
73
                         name, ovs_strerror(error));
74
74
            if (!retval) {
75
75
                retval = error;
76
76
            }
113
113
            static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
114
114
            if (send(c->fds[i], payload, n, 0) == -1) {
115
115
                VLOG_WARN_RL(&rl, "sending to collector failed: %s",
116
 
                             strerror(errno));
 
116
                             ovs_strerror(errno));
117
117
            }
118
118
        }
119
119
    }