From: Ali H. Fardan Date: Wed, 31 Aug 2016 03:10:53 +0000 (+0300) Subject: forgot to give entropy() some candy too X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/5e4dc85bb9bf821d87bcf8a13e0f0843fd68bfe1?ds=sidebyside forgot to give entropy() some candy too --- 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); }