diff options
author | Ben Pfaff <blp@nicira.com> | 2013-06-24 10:54:49 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-06-28 16:09:38 -0700 |
commit | 10a89ef04df5669c5cdd02f786150a7ab8454e01 (patch) | |
tree | 8c921735df6d0dca97df88af70e986c4fdf38dca /lib/poll-loop.c | |
parent | 5fcbed7479c5f1d2cc08c3f544f10dbbe8ec0d90 (diff) |
Replace all uses of strerror() by ovs_strerror(), for thread safety.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r-- | lib/poll-loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/poll-loop.c b/lib/poll-loop.c index 98553068..ea00d265 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 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. @@ -249,7 +249,7 @@ poll_block(void) retval = time_poll(pollfds, n_pollfds, timeout_when, &elapsed); if (retval < 0) { static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); - VLOG_ERR_RL(&rl, "poll: %s", strerror(-retval)); + VLOG_ERR_RL(&rl, "poll: %s", ovs_strerror(-retval)); } else if (!retval) { log_wakeup(timeout_where, NULL, elapsed); } |