X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fentropy.c;h=1f1af50a5d9f5256e0bd62e6dda2b211c3529d25;hb=fe1e967e3bc6c04f773b150fbb358b2350d0ad8c;hp=8a6479bef2f50217bea1fa2bd1612cd730c814dd;hpb=d98e60075528c3065ad453f7add4b30f22edcde3;p=openvswitch diff --git a/lib/entropy.c b/lib/entropy.c index 8a6479be..1f1af50a 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; }