summaryrefslogtreecommitdiff
path: root/lib/entropy.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-31 14:50:20 -0700
committerBen Pfaff <blp@nicira.com>2011-04-04 10:58:54 -0700
commitfe1e967e3bc6c04f773b150fbb358b2350d0ad8c (patch)
treee001b4fa8fe508337c9e6152fedab58d2dee834f /lib/entropy.c
parent1c5a216a80ce40c6af79a8919c7f5a06d1b97a90 (diff)
downloadopenvswitch-fe1e967e3bc6c04f773b150fbb358b2350d0ad8c.tar.gz
Add a few more users for ovs_retval_to_string().
Diffstat (limited to 'lib/entropy.c')
-rw-r--r--lib/entropy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/entropy.c b/lib/entropy.c
index 8a6479bef..1f1af50a5 100644
--- a/lib/entropy.c
+++ b/lib/entropy.c
@@ -47,8 +47,7 @@ get_entropy(void *buffer, size_t n)
close(fd);
if (error) {
- VLOG_ERR("%s: read error (%s)", urandom,
- error == EOF ? "unexpected end of file" : strerror(error));
+ VLOG_ERR("%s: read error (%s)", urandom, ovs_retval_to_string(error));
}
return error;
}