]> 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)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Sep 2021 19:51:44 +0000 (12:51 -0700)
commitdf8912ede29c0fd812da1b8dcfdbb109dcd0af18
treeb33727fefa008e31e1e7ebf7e8a8c30ff954f22f
parent7e7270bb1f18dadbfcf6d4799aee9a85fecd95d9
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