Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
forgot to give entropy() some candy too
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
5246bc0
..
f070e1d
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-252,7
+252,8
@@
entropy(void)
FILE *fp = fopen("/proc/sys/kernel/random/entropy_avail", "r");
if (fp == NULL) {
- fprintf(stderr, "Could not open entropy file.\n");
+ fprintf(stderr, "Could not open entropy file: %s\n",
+ strerror(errno));
return smprintf(UNKNOWN_STR);
}