From: Pavel Roskin Date: Sun, 30 Oct 2011 19:50:22 +0000 (+0200) Subject: random: Improve error messages about writing to entropy file X-Git-Tag: hostap-1-bp~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9339bd5cd2d3e05d56bf6f1fbf631acad8bddf7e;p=thirdparty%2Fhostap.git random: Improve error messages about writing to entropy file --- diff --git a/src/crypto/random.c b/src/crypto/random.c index 5b15354b7..a54e197bf 100644 --- a/src/crypto/random.c +++ b/src/crypto/random.c @@ -364,8 +364,8 @@ static void random_write_entropy(void) f = fopen(random_entropy_file, "wb"); if (f == NULL) { - wpa_printf(MSG_ERROR, "random: Could not write %s", - random_entropy_file); + wpa_printf(MSG_ERROR, "random: Could not open entropy file %s " + "for writing", random_entropy_file); return; } @@ -375,8 +375,8 @@ static void random_write_entropy(void) fail = 1; fclose(f); if (fail) { - wpa_printf(MSG_ERROR, "random: Could not entropy data to %s", - random_entropy_file); + wpa_printf(MSG_ERROR, "random: Could not write entropy data " + "to %s", random_entropy_file); return; }