diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 23:26:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 23:26:34 +0800 |
commit | caabad0d5d9ffa901675ba88a67e9c40cb5137b8 (patch) | |
tree | 18551942c8b96e62664e2fbb7726bc1c18331864 | |
parent | 4b035bfde9bf44629a3c7d6bc65ebddbfae85d52 (diff) | |
download | dropbear-caabad0d5d9ffa901675ba88a67e9c40cb5137b8.tar.gz |
Don't warn when SO_PRIORITY fails
-rw-r--r-- | netio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -398,9 +398,9 @@ void set_sock_priority(int sock, enum dropbear_prio prio) { } /* 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 } |