mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
Tweaks to strings in 24500
This commit is contained in:
parent
313360e6e6
commit
779e4b9dcf
@ -1,3 +1,3 @@
|
||||
o Code simplification and refactoring:
|
||||
- Making more useful log messages for errno errors on getrandom() call.
|
||||
o Minor features (logging):
|
||||
- Provide better warnings when the getrandom() syscall fails.
|
||||
Closes ticket 24500.
|
||||
|
@ -2877,12 +2877,12 @@ crypto_strongest_rand_syscall(uint8_t *out, size_t out_len)
|
||||
|
||||
/* Useful log message for errno. */
|
||||
if (errno == ENOSYS) {
|
||||
log_warn(LD_CRYPTO, "This warning is caused by ENOSYS error."
|
||||
log_warn(LD_CRYPTO, "Can't get entropy from getrandom(). "
|
||||
" You are running a version of Tor built to support"
|
||||
" getrandom(), but the kernel is too old and doesn't"
|
||||
" implement this function.");
|
||||
" getrandom(), but the kernel doesn't implement this"
|
||||
" implement this function--probably because it is too old?");
|
||||
} else {
|
||||
log_warn(LD_CRYPTO, "Can't get entropy from getrandom(). %s error.",
|
||||
log_warn(LD_CRYPTO, "Can't get entropy from getrandom(): %s.",
|
||||
strerror(errno));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user