mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* janitoring printk with no KERN_ constants, kill all defaults?
@ 2004-10-15 15:44 Daniele Pizzoni
  2004-10-15 15:46 ` Dave Jones
  2004-10-15 16:17 ` [KJ] " Nishanth Aravamudan
  0 siblings, 2 replies; 4+ messages in thread
From: Daniele Pizzoni @ 2004-10-15 15:44 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: pazke

I'm investigating this (from the kernel janitors TODO list):

------------------------------------------------------------------------
From: Andrey Panin <pazke at orbita dot don dot sitek dot net>

- check printk() calls (should include appropriate KERN_* constant).

------------------------------------------------------------------------

printk ends up using the default KERN_WARNING constant when no costant
is explicitly specified; the default is changeable. So a printk with
_no_ constant specified means "use the current default" and could be,
maybe in some cases only, a developer choice.

I ask, what rationale there is behind checking all printks to include
the "appropriate" constant? Should then we make printk fail when called
without KERN_ constant? Or can I force with a sed script all defaulted
printk to KERN_WARNING?

I'm looking for advice, or a pointer to an appropriate thread of the
lkml archives.

Thanks
Daniele Pizzoni <auouo@tin.it>



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

end of thread, other threads:[~2004-10-15 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-15 15:44 janitoring printk with no KERN_ constants, kill all defaults? Daniele Pizzoni
2004-10-15 15:46 ` Dave Jones
2004-10-15 17:20   ` Daniele Pizzoni
2004-10-15 16:17 ` [KJ] " Nishanth Aravamudan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®