diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-07-24 14:49:00 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-07-25 12:25:26 +0200 |
commit | 13295583f8b64b67030aa8ef8d568adc451fcd8c (patch) | |
tree | 6ae1a30c561776add0922c5d922d9b5c7b5e7f4e | |
parent | d19b396f114ddca2481683a88c3a72f36a465b8a (diff) | |
download | passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar.gz passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar.bz2 passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar.lz passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar.xz passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.tar.zst passt-13295583f8b64b67030aa8ef8d568adc451fcd8c.zip |
tcp: Change SO_PEEK_OFF support message to debug()
This:
$ ./pasta
SO_PEEK_OFF not supported
#
is a bit annoying, and might trick users who face other issues into
thinking that SO_PEEK_OFF not being supported on a given kernel is
an actual issue.
Even if SO_PEEK_OFF is supported by the kernel, that would be the
only message displayed there, with default options, which looks a bit
out of context.
Switch that to debug(): now that Podman users can pass --debug too, we
can find out quickly if it's supported or not, if SO_PEEK_OFF usage is
suspected of causing any issue.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2524,7 +2524,7 @@ int tcp_init(struct ctx *c) peek_offset_cap = (!c->ifi4 || tcp_probe_peek_offset_cap(AF_INET)) && (!c->ifi6 || tcp_probe_peek_offset_cap(AF_INET6)); - info("SO_PEEK_OFF%ssupported", peek_offset_cap ? " " : " not "); + debug("SO_PEEK_OFF%ssupported", peek_offset_cap ? " " : " not "); return 0; } |