summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-01-04 01:19:28 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-01-08 04:08:57 +0100
commit618b266ef65c18ee2c54f66e22a3a05b294ce5e0 (patch)
tree2b57d6e7c09e43d0d144c7acb011d2b2986fc422
parent89bb1e00f921a4e8b0e1e3b3e6aea5d26ccd0435 (diff)
examples/genl: fix newline imbalance
Running `genl-family-get VFS_DQUOT` forgets to print a newline. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--examples/genl/genl-family-get.c5
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;