From: Jan Engelhardt <jengelh@medozas.de>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 1/2] examples/genl: fix newline imbalance
Date: Sat, 8 Jan 2011 04:09:46 +0100 [thread overview]
Message-ID: <1294456188-4221-2-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1294456188-4221-1-git-send-email-jengelh@medozas.de>
Running `genl-family-get VFS_DQUOT` forgets to print a newline.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
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
next prev parent reply other threads:[~2011-01-08 3:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-08 3:09 libmnl: genl patches Jan Engelhardt
2011-01-08 3:09 ` Jan Engelhardt [this message]
2011-01-08 3:09 ` [PATCH 2/2] examples/genl: support dumping the genl families Jan Engelhardt
2011-01-09 18:57 ` libmnl: genl patches Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294456188-4221-2-git-send-email-jengelh@medozas.de \
--to=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).