[PATCH 1/2] examples/genl: fix newline imbalance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Running `genl-family-get VFS_DQUOT` forgets to print a newline.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 examples/genl/genl-family-get.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/genl/genl-family-get.c b/examples/genl/genl-family-get.c
index ba8291e..1ad1a04 100644
--- a/examples/genl/genl-family-get.c
+++ b/examples/genl/genl-family-get.c
@@ -169,12 +169,13 @@ static int data_cb(const struct nlmsghdr *nlh, void *data)
 		printf("maxattr=%u\t",
 			mnl_attr_get_u32(tb[CTRL_ATTR_MAXATTR]));
 	}
+	printf("\n");
 	if (tb[CTRL_ATTR_OPS]) {
-		printf("\nops:\n");
+		printf("ops:\n");
 		parse_genl_family_ops(tb[CTRL_ATTR_OPS]);
 	}
 	if (tb[CTRL_ATTR_MCAST_GROUPS]) {
-		printf("\ngrps:\n");
+		printf("grps:\n");
 		parse_genl_mc_grps(tb[CTRL_ATTR_MCAST_GROUPS]);
 	}
 	return MNL_CB_OK;
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux