summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-08-31 06:10:53 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-08-31 06:10:53 +0300
commit5e4dc85bb9bf821d87bcf8a13e0f0843fd68bfe1 (patch)
treebae5cfc6f698e8e99588873d4f30b9f8dbc2e177
parentcd3c084957483c4192edf2e8feb4c759668a1055 (diff)
forgot to give entropy() some candy too
-rw-r--r--slstatus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index 5246bc0..f070e1d 100644
--- 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);
}