From: Antonio Quartulli <antonio@meshcoding.com>
To: "André Gaul" <gaul@web-yard.de>
Cc: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH] remove unnecessary logspam
Date: Tue, 10 Jun 2014 08:01:33 +0200 [thread overview]
Message-ID: <53969F3D.5040306@meshcoding.com> (raw)
In-Reply-To: <539628F6.9070706@web-yard.de>
[-- Attachment #1: Type: text/plain, Size: 4288 bytes --]
Hi André,
On 09/06/14 23:36, André Gaul wrote:
> Hey Antonio,
>
> thx for your quick reply!
>
> Am 09.06.2014 23:05, schrieb Antonio Quartulli:
>> I'd suggest you to check this patch with checkpatch.pl --strict. Here I
>> get many errors due to non-printable chars at the end of various lines.
>
This is my output (this is checkpatch from net-next) - you can ignore
the warnings about "Macros with complex values should be enclosed in
parenthesis":
$ ./exp/linux-merge/scripts/checkpatch.pl --strict \[B.A.T.M.A.N.\]\
\[PATCH\]\ remove\ unnecessary\ logspam.eml
ERROR: DOS line endings
#111: FILE: main.h:242:
+/* possibly ratelimited debug output */^M$
ERROR: DOS line endings
#112: FILE: main.h:243:
+#define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...)^I\^M$
WARNING: Whitespace after \ makes next lines useless
#112: FILE: main.h:243:
+#define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \
ERROR: Macros with complex values should be enclosed in parenthesis
#112: FILE: main.h:243:
+#define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \
ERROR: DOS line endings
#115: FILE: main.h:245:
+^I^Iif (atomic_read(&bat_priv->log_level) & type && \^M$
ERROR: DOS line endings
#116: FILE: main.h:246:
+^I^I (!ratelimited || net_ratelimit()))^I^I\^M$
ERROR: DOS line endings
#125: FILE: main.h:251:
+__printf(4, 5)^M$
ERROR: DOS line endings
#126: FILE: main.h:252:
+static inline void _batadv_dbg(int type __always_unused,^M$
ERROR: DOS line endings
#127: FILE: main.h:253:
+^I^I^I struct batadv_priv *bat_priv __always_unused,^M$
ERROR: DOS line endings
#128: FILE: main.h:254:
+^I^I^I int ratelimited __always_unused,^M$
ERROR: DOS line endings
#129: FILE: main.h:255:
+^I^I^I const char *fmt __always_unused, ...)^M$
ERROR: DOS line endings
#134: FILE: main.h:260:
+#define batadv_dbg(type, bat_priv, arg...) \^M$
WARNING: Whitespace after \ makes next lines useless
#134: FILE: main.h:260:
+#define batadv_dbg(type, bat_priv, arg...) \
ERROR: Macros with complex values should be enclosed in parenthesis
#134: FILE: main.h:260:
+#define batadv_dbg(type, bat_priv, arg...) \
ERROR: DOS line endings
#135: FILE: main.h:261:
+^I_batadv_dbg(type, bat_priv, 0, ## arg)^M$
ERROR: DOS line endings
#136: FILE: main.h:262:
+#define batadv_dbg_ratelimited(type, bat_priv, arg...) \^M$
WARNING: Whitespace after \ makes next lines useless
#136: FILE: main.h:262:
+#define batadv_dbg_ratelimited(type, bat_priv, arg...) \
ERROR: Macros with complex values should be enclosed in parenthesis
#136: FILE: main.h:262:
+#define batadv_dbg_ratelimited(type, bat_priv, arg...) \
ERROR: DOS line endings
#137: FILE: main.h:263:
+^I_batadv_dbg(type, bat_priv, 1, ## arg)^M$
ERROR: DOS line endings
#138: FILE: main.h:264:
+^M$
ERROR: DOS line endings
#155: FILE: routing.c:709:
+^I^I^Ibatadv_dbg_ratelimited(BATADV_DBG_TT,^M$
ERROR: DOS line endings
#156: FILE: routing.c:710:
+^I^I^I^I^I bat_priv,^M$
ERROR: DOS line endings
#157: FILE: routing.c:711:
+^I^I^I^I^I "Rerouting unicast packet to %pM (dst=%pM): Local
Roaming\n",^M$
ERROR: DOS line endings
#158: FILE: routing.c:712:
+^I^I^I^I^I unicast_packet->dest,^M$
ERROR: DOS line endings
#159: FILE: routing.c:713:
+^I^I^I^I^I ethhdr->h_dest);^M$
ERROR: DOS line endings
#171: FILE: routing.c:755:
+^I^Ibatadv_dbg_ratelimited(BATADV_DBG_TT, bat_priv,^M$
ERROR: DOS line endings
#172: FILE: routing.c:756:
+^I^I^I^I "Rerouting unicast packet to %pM (dst=%pM): TTVN
mismatch old_ttvn=%u new_ttvn=%u\n",^M$
ERROR: DOS line endings
#173: FILE: routing.c:757:
+^I^I^I^I unicast_packet->dest, ethhdr->h_dest,^M$
ERROR: DOS line endings
#174: FILE: routing.c:758:
+^I^I^I^I old_ttvn, curr_ttvn);^M$
total: 26 errors, 3 warnings, 0 checks, 65 lines checked
[B.A.T.M.A.N.] [PATCH] remove unnecessary logspam.eml has style
problems, please review.
If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
maybe it's the mail client that messes the patch up? Are you using
git-send-email ?
Cheers,
--
Antonio Quartulli
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
next prev parent reply other threads:[~2014-06-10 6:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 19:53 [B.A.T.M.A.N.] [PATCH] remove unnecessary logspam André Gaul
2014-06-09 8:54 ` Antonio Quartulli
2014-06-09 17:14 ` André Gaul
2014-06-09 21:05 ` Antonio Quartulli
2014-06-09 21:36 ` André Gaul
2014-06-10 6:01 ` Antonio Quartulli [this message]
2014-06-10 15:38 ` André Gaul
2014-06-10 15:40 ` Antonio Quartulli
2014-06-10 15:45 ` André Gaul
2014-06-11 6:04 ` Antonio Quartulli
2014-06-14 1:44 ` Marek Lindner
2014-06-15 12:32 ` André Gaul
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=53969F3D.5040306@meshcoding.com \
--to=antonio@meshcoding.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=gaul@web-yard.de \
/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