All of lore.kernel.org
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] Addition of verbose mode to checkpatch
@ 2021-01-22 21:27 Dwaipayan Ray
  2021-01-23  3:14 ` Lukas Bulwahn
  0 siblings, 1 reply; 6+ messages in thread
From: Dwaipayan Ray @ 2021-01-22 21:27 UTC (permalink / raw)
  To: Lukas Bulwahn, linux-kernel-mentees

Hi Lukas and all,
Recently while going through the warnings emitted by checkpatch,
the necessity of a verbose mode came up once again. Joe had
already suggested that a verbose mode would probably be worked
on.

As for how that could be done, that leaves us at a couple of options.
Since writing verbose messages for all warnings aren't possible at once,
there can be an optional extension when emitting messages:

Currently, a warning can be emitted by
WARN("TYPE", "Message")
which could be converted to say:
WARN('TYPE", "Message", "Verbose")

Another way is to leave the original warning emitting syntax intact
and instead go for a dictionary for verbose messages:
our %dict = (
"TYPE1" => "Verbose",
"TYPE2" => "Verbose"
...);

Although this leaves us the ability to customize the verbose output
for each warning of a particular type.

Which do you think would be best? Certainly more options might be
possible, so any new inputs will be nice as well!

Thank you,
Dwaipayan.
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-23 16:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 21:27 [Linux-kernel-mentees] Addition of verbose mode to checkpatch Dwaipayan Ray
2021-01-23  3:14 ` Lukas Bulwahn
2021-01-23 10:11   ` Dwaipayan Ray
2021-01-23 12:45     ` Lukas Bulwahn
2021-01-23 14:11       ` Dwaipayan Ray
2021-01-23 16:59         ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.