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>
This commit is contained in:
parent
d19b396f11
commit
13295583f8
1 changed files with 1 additions and 1 deletions
2
tcp.c
2
tcp.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue