]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nf_conntrack_h323: Correct indentation when H323_TRACE defined
authorDavid Laight <david.laight.linux@gmail.com>
Thu, 26 Mar 2026 20:18:19 +0000 (20:18 +0000)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Apr 2026 05:51:31 +0000 (07:51 +0200)
commitf33fad8dbfff7c35c22abb3a7305173d005ac362
tree0ef08f73e02f7927788b436a4ce45d7a5a5a4f5c
parent3785091c6c16a1ce4a5e0460881fc81ed8d2c8a1
netfilter: nf_conntrack_h323: Correct indentation when H323_TRACE defined

The trace lines are indented using PRINT("%*.s", xx, " ").
Userspace will treat this as "%*.0s" and will output no characters
when 'xx' is zero, the kernel treats it as "%*s" and will output
a single ' ' - which is probably what is intended.

Change all the formats to "%*s" removing the default precision.
This gives a single space indent when level is zero.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_conntrack_h323_asn1.c