From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Luis de Bethencourt <luisbg@ubuntu.com>
Subject: Re: [B.A.T.M.A.N.] [PATCHv2-trunk] Staging: batman-adv: fix whitespace style issues
Date: Sun, 4 Apr 2010 10:48:54 +0800 [thread overview]
Message-ID: <201004041048.54962.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1270345460-20555-1-git-send-email-sven.eckelmann@gmx.de>
On Sunday 04 April 2010 09:44:20 Sven Eckelmann wrote:
> From: Luis de Bethencourt <luisbg@ubuntu.com>
>
> This patch fixes the 31 unnecessary whitespaces before a quoted
> newline that the batman-adv files had.
>
> Signed-off-by: Luis de Bethencourt <luisbg@ubuntu.com>
> [sven.eckelmann@gmx.de: Redone to apply against current version]
> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
> ---
> Changes are done with "reorganized kernel interface patches (version 3)"
> applied.
>
> --- a/batman-adv-kernelland/bat_sysfs.c
> +++ b/batman-adv-kernelland/bat_sysfs.c
> @@ -77,7 +77,7 @@ static ssize_t show_aggr_ogm(struct kobject *kobj, struct
> attribute *attr, struct bat_priv *bat_priv = netdev_priv(to_net_dev(dev));
> int aggr_status = atomic_read(&bat_priv->aggregation_enabled);
>
> - return sprintf(buff, "status: %s\ncommands: enable, disable, 0, 1
> \n", + return sprintf(buff, "status: %s\ncommands: enable, disable,
> 0, 1\n", aggr_status == 0 ? "disabled" : "enabled"); }
The whitespaces in bat_sysfs.c after the "commands" string are intentional.
Userspace applications can simply split the string after each whitespace. Of
course, it can be done differently but it only "costs" us a whitespace. I was
not aware this would be an issue. Can we keep it or should we change e.g.
batctl ?
Cheers,
Marek
next prev parent reply other threads:[~2010-04-04 2:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <batman-adv>
[not found] ` <1270341625-28764-1-git-send-email-luisbg@ubuntu.com>
2010-04-04 1:12 ` [B.A.T.M.A.N.] [PATCH 4/4] Staging: batman-adv: fix whitespace style issues Sven Eckelmann
2010-04-04 1:24 ` [B.A.T.M.A.N.] [PATCHv2-maint] " Sven Eckelmann
2010-04-04 17:09 ` Marek Lindner
2010-04-04 17:51 ` Luis de Bethencourt
2010-04-04 1:44 ` [B.A.T.M.A.N.] [PATCHv2-trunk] " Sven Eckelmann
2010-04-04 2:48 ` Marek Lindner [this message]
2010-04-04 16:33 ` [B.A.T.M.A.N.] [PATCH] batctl: Parse allowed settings for sysfs without whitespace before newline Sven Eckelmann
2010-04-06 5:33 ` Marek Lindner
2010-04-04 1:45 ` [B.A.T.M.A.N.] [PATCH 4/4] Staging: batman-adv: fix whitespace style issues Luis de Bethencourt
2010-04-04 10:46 ` Sven Eckelmann
2010-04-04 11:10 ` Luis de Bethencourt
2010-04-04 11:30 ` Sven Eckelmann
2010-04-04 12:39 ` Luis de Bethencourt
2010-04-04 14:42 ` Marek Lindner
2010-04-04 15:02 ` Luis de Bethencourt
2010-04-04 15:14 ` Sven Eckelmann
2010-04-04 15:19 ` Luis de Bethencourt
2010-04-04 13:56 ` Andrew Lunn
2010-04-04 14:56 ` Luis de Bethencourt
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=201004041048.54962.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=luisbg@ubuntu.com \
/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