From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Antonio Quartulli <antonio@meshcoding.com>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: use static string for table headers
Date: Fri, 11 Mar 2016 16:25 +0100 [thread overview]
Message-ID: <2174915.lOId8kMdZA@bentobox> (raw)
In-Reply-To: <1383809091-3887-1-git-send-email-antonio@meshcoding.com>
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
On Thursday 07 November 2013 08:24:51 Antonio Quartulli wrote:
> Use a static string when showing table headers rather then
> a nonsense parametric one with fixed arguments.
>
> It is easier to grep and it does not need to be recomputed
> at runtime each time.
>
> Reported-by: Joe Perches <joe@perches.com>
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
> bat_iv_ogm.c | 5 ++---
> bridge_loop_avoidance.c | 7 +++----
> distributed-arp-table.c | 4 ++--
> translation-table.c | 9 ++++-----
> 4 files changed, 11 insertions(+), 14 deletions(-)
>
It looks that there now one more table in net/batman-adv/bat_iv_ogm.c and
two in net/batman-adv/bat_v.c
$ git grep seq_printf|grep '%-'
net/batman-adv/bat_iv_ogm.c: seq_printf(seq, " %-15s %s (%s/%i) %17s [%10s]: %20s ...\n",
net/batman-adv/bat_iv_ogm.c: seq_printf(seq, " %10s %-13s %s\n",
net/batman-adv/bat_v.c: seq_printf(seq, " %-15s %s (%11s) [%10s]\n", "Neighbor",
net/batman-adv/bat_v.c: seq_printf(seq, " %-15s %s (%11s) %17s [%10s]: %20s ...\n",
net/batman-adv/bridge_loop_avoidance.c: seq_printf(seq, " %-17s %-5s %-17s [o] (%-6s)\n",
net/batman-adv/bridge_loop_avoidance.c: seq_printf(seq, " %-17s %-5s %-9s (%-6s)\n",
net/batman-adv/distributed-arp-table.c: seq_printf(seq, " %-7s %-9s %4s %11s\n", "IPv4",
net/batman-adv/translation-table.c: seq_printf(seq, " %-13s %s %-8s %-9s (%-10s)\n", "Client", "VID",
net/batman-adv/translation-table.c: seq_printf(seq, " %-13s %s %s %-15s %s (%-10s) %s\n",
But I can update these parts myself and send a fresh version to the
mailing list.
Kind regards,
Sve
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-03-11 15:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 7:24 [B.A.T.M.A.N.] [PATCH] batman-adv: use static string for table headers Antonio Quartulli
2016-03-10 17:53 ` Sven Eckelmann
2016-03-11 15:25 ` Sven Eckelmann [this message]
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=2174915.lOId8kMdZA@bentobox \
--to=sven@narfation.org \
--cc=antonio@meshcoding.com \
--cc=b.a.t.m.a.n@lists.open-mesh.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