summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2021-12-30 00:03:37 +0100
committerJirka Hladky <jhladky@redhat.com>2021-12-30 00:03:37 +0100
commitc35c6f44aa01d0f6ddf2752e04b5ef763f4c61a2 (patch)
treeeb83b73578458e4fad11726b21de40625b2a1986
parentAdd entropy unconditionally at start and then every 60 seconds (diff)
downloadhaveged-c35c6f44aa01d0f6ddf2752e04b5ef763f4c61a2.tar.xz
haveged-c35c6f44aa01d0f6ddf2752e04b5ef763f4c61a2.zip
Removed debug message
-rw-r--r--src/haveged.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/haveged.c b/src/haveged.c
index ba2419d..9ec1004 100644
--- a/src/haveged.c
+++ b/src/haveged.c
@@ -649,8 +649,7 @@ static void run_daemon( /* RETURN: nothing */
/* entropy is 8 bits per byte */
output->entropy_count = nbytes * 8;
if (ioctl(random_fd, RNDADDENTROPY, output) == -1)
- printf("RNDADDENTROPY failed!");
- printf("Added %d bytes of entropy\n", nbytes);
+ printf("Warning: RNDADDENTROPY failed!");
t[0] = t[1];
continue;
}
@@ -936,7 +935,7 @@ static void run_app( /* RETURN: nothing */
#ifdef RAW_IN_ENABLE
{
char *format, *in="",*out,*sz,*src="";
-
+
if (params->run_level==DIAG_RUN_INJECT)
in = "tics";
else if (params->run_level==DIAG_RUN_TEST)
@@ -951,7 +950,7 @@ static void run_app( /* RETURN: nothing */
else sz = "unlimited";
out = (fout==stdout)? "stdout" : params->sample_out;
fprintf(stderr, format, in, src, sz, out);
- }
+ }
#else
if (limits)
fprintf(stderr, "Writing %s output to %s\n",