]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
random: Improve error messages about writing to entropy file
authorPavel Roskin <proski@gnu.org>
Sun, 30 Oct 2011 19:50:22 +0000 (21:50 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 30 Oct 2011 19:50:22 +0000 (21:50 +0200)
src/crypto/random.c

index 5b15354b7ec13e2ce60365ef4539373048a36277..a54e197bf577411ee6903c22370818ebc1cbe7b1 100644 (file)
@@ -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;
        }