[PATCH 1/3] random: improve error messages about writing to entropy file

Pavel Roskin proski
Sun Aug 7 05:49:09 PDT 2011


---

 src/crypto/random.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/crypto/random.c b/src/crypto/random.c
index 5b15354..eff96d2 100644
--- a/src/crypto/random.c
+++ b/src/crypto/random.c
@@ -364,7 +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",
+		wpa_printf(MSG_ERROR,
+			   "random: Could not open entropy file %s",
 			   random_entropy_file);
 		return;
 	}
@@ -375,7 +376,8 @@ static void random_write_entropy(void)
 		fail = 1;
 	fclose(f);
 	if (fail) {
-		wpa_printf(MSG_ERROR, "random: Could not entropy data to %s",
+		wpa_printf(MSG_ERROR,
+			   "random: Could not write entropy data to %s",
 			   random_entropy_file);
 		return;
 	}



More information about the Hostap mailing list