Mercurial > dropbear
diff netio.c @ 1704:d384bc2e5af3
Don't warn when SO_PRIORITY fails
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 28 May 2020 23:26:34 +0800 |
parents | 35a1e8de3aec |
children | 58f7ca8ebc82 |
line wrap: on
line diff
--- a/netio.c Thu May 28 23:23:54 2020 +0800 +++ b/netio.c Thu May 28 23:26:34 2020 +0800 @@ -398,9 +398,9 @@ } /* linux specific, sets QoS class. see tc-prio(8) */ rc = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &so_prio_val, sizeof(so_prio_val)); - if (rc < 0 && errno != ENOTSOCK) - dropbear_log(LOG_WARNING, "Couldn't set SO_PRIORITY (%s)", - strerror(errno)); + if (rc < 0 && errno != ENOTSOCK) { + TRACE(("Couldn't set SO_PRIORITY (%s)", strerror(errno))) + } #endif }