From: SF Markus Elfring <hidden> Date: 2018-01-06 21:44:56
From: Markus Elfring <redacted>
Date: Sat, 6 Jan 2018 22:34:12 +0100
Two strings should be quickly put into a sequence by two function calls.
Thus use the function "seq_puts" instead of "seq_printf".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <redacted>
---
net/atm/clip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
On Sat, 6 Jan 2018 22:44:08 +0100
SF Markus Elfring [off-list ref] wrote:
From: Markus Elfring <redacted>
Date: Sat, 6 Jan 2018 22:34:12 +0100
Two strings should be quickly put into a sequence by two function calls.
Thus use the function "seq_puts" instead of "seq_printf".
This issue was detected by using the Coccinelle software.
Can you please explain what the issue really is and what you're trying
to do here? One shouldn't need to dig into Coccinelle patterns to find
out what you mean, and "strings should be quickly put into a sequence"
isn't terribly helpful.
--
Stefano
From: SF Markus Elfring <hidden> Date: 2018-01-07 08:19:50
quoted
Two strings should be quickly put into a sequence by two function calls.
Thus use the function "seq_puts" instead of "seq_printf".
This issue was detected by using the Coccinelle software.
Can you please explain what the issue really is and what you're trying
to do here?
Is the function "seq_puts" a bit more efficient for the desired output
of a single string in comparison to calling the function "seq_printf"
for this purpose?
One shouldn't need to dig into Coccinelle patterns to find
out what you mean,
Why did an attribution for a software tool confuse you?
and "strings should be quickly put into a sequence"
isn't terribly helpful.
Which wording would you find more appropriate for the suggested
adjustment of these function calls?
Regards,
Markus
On Sun, 7 Jan 2018 09:19:17 +0100
SF Markus Elfring [off-list ref] wrote:
quoted
quoted
Two strings should be quickly put into a sequence by two function calls.
Thus use the function "seq_puts" instead of "seq_printf".
This issue was detected by using the Coccinelle software.
Can you please explain what the issue really is and what you're trying
to do here?
Is the function "seq_puts" a bit more efficient for the desired output
of a single string in comparison to calling the function "seq_printf"
for this purpose?
Will you please be so kind and tell us?
quoted
One shouldn't need to dig into Coccinelle patterns to find
out what you mean,
Why did an attribution for a software tool confuse you?
I'm not confused. I'm saying that one shouldn't need to dig into
Coccinelle patterns to find out what you mean.
quoted
and "strings should be quickly put into a sequence"
isn't terribly helpful.
Which wording would you find more appropriate for the suggested
adjustment of these function calls?
Whatever describes the actual issue and what you're doing about it.
Turn your rhetorical question above into a commit message, done.
Compare that with your original commit message, on the other hand,
and you should understand what I mean.
--
Stefano
From: SF Markus Elfring <hidden> Date: 2018-01-07 16:30:39
quoted
Is the function "seq_puts" a bit more efficient for the desired output
of a single string in comparison to calling the function "seq_printf"
for this purpose?
Will you please be so kind and tell us?
How do you think about to get the run time characteristics for these
sequence output functions better documented?
https://elixir.free-electrons.com/linux/v4.15-rc6/source/fs/seq_file.c#L660
Can an information like “WARNING: Prefer seq_puts to seq_printf”
(from the script “checkpatch.pl”) be another incentive?
quoted
quoted
and "strings should be quickly put into a sequence"
isn't terribly helpful.
Which wording would you find more appropriate for the suggested
adjustment of these function calls?
Whatever describes the actual issue and what you're doing about it.
Turn your rhetorical question above into a commit message, done.
Compare that with your original commit message, on the other hand,
and you should understand what I mean.
Which descriptions are you really missing for the affected data output?
Regards,
Markus
From: Andy Shevchenko <hidden> Date: 2018-01-07 22:58:24
On Sat, Jan 6, 2018 at 11:44 PM, SF Markus Elfring
[off-list ref] wrote:
quoted hunk
From: Markus Elfring <redacted>
Date: Sat, 6 Jan 2018 22:34:12 +0100
Two strings should be quickly put into a sequence by two function calls.
Thus use the function "seq_puts" instead of "seq_printf".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <redacted>
---
net/atm/clip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
...while this one is okay per se, better to keep above pattern (same
style over the piece of code / function).
return;
}
if (*addr->sas_addr.prv) {
--
2.15.1
P.S. I'm wondering what would be first, Markus starts looking into the
actual code, or most (all) of the maintainers just ban him.
--
With Best Regards,
Andy Shevchenko