diff options
author | Franck Bui <fbui@suse.com> | 2022-10-21 15:08:43 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2022-10-25 12:16:22 +0200 |
commit | ea37e1edf9bdaa5a90050d69454a132dc5d60360 (patch) | |
tree | 697f43da9826fc4b27eec4f952f6993e2b7e35b6 /src/random-seed/random-seed.c | |
parent | random_seed: minor improvement in run() (diff) | |
download | systemd-ea37e1edf9bdaa5a90050d69454a132dc5d60360.tar.xz systemd-ea37e1edf9bdaa5a90050d69454a132dc5d60360.zip |
random-seed: downgrade some messages
In these cases, we eat up the error and propagate success so we should log at
warning level only.
Diffstat (limited to 'src/random-seed/random-seed.c')
-rw-r--r-- | src/random-seed/random-seed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 05fb5bb157..7782509572 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -167,7 +167,7 @@ static int load_seed_file( k = loop_read(seed_fd, buf, seed_size, false); if (k < 0) { - log_error_errno(k, "Failed to read seed from " RANDOM_SEED ": %m"); + log_warning_errno(k, "Failed to read seed from " RANDOM_SEED ": %m"); return 0; } if (k == 0) { @@ -219,7 +219,7 @@ static int load_seed_file( r = random_write_entropy(urandom_fd, buf, k, IN_SET(lets_credit, CREDIT_ENTROPY_YES_PLEASE, CREDIT_ENTROPY_YES_FORCED)); if (r < 0) - log_error_errno(r, "Failed to write seed to /dev/urandom: %m"); + log_warning_errno(r, "Failed to write seed to /dev/urandom: %m"); return 0; } |