summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-28 23:26:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-28 23:26:34 +0800
commit4faf06aae794a5b720fd3653ae2870e639a264fd (patch)
tree6f8839d38813e10a6ea5bcf0ae4f5c26d824f714 /netio.c
parent07d46f9907d6d3f5d6f1ceba1bbbe41bad732760 (diff)
Don't warn when SO_PRIORITY fails
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netio.c b/netio.c
index 8452003..d84975a 100644
--- a/netio.c
+++ b/netio.c
@@ -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
}