]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipioam6: use print_nl instead of print_null
authorJustin Iurman <justin.iurman@uliege.be>
Wed, 11 Aug 2021 10:13:56 +0000 (12:13 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 11 Aug 2021 18:16:09 +0000 (12:16 -0600)
commit71ba9c18e0131558f3d6745490f6e658b9a8c98d
treec259001177a9aedc6fdaa44657cc721970c89d2d
parente78411948dc70c3325599d1c1a56cf73eb142a2a
ipioam6: use print_nl instead of print_null

This patch addresses Stephen's comment:

"""
> +        print_null(PRINT_ANY, "", "\n", NULL);

Use print_nl() since it handles the case of oneline output.
Plus in JSON the newline is meaningless.
"""

It also removes two useless print_null's.

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipioam6.c