lkml.org 
[lkml]   [2008]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] introduce boot_printk()
Yinghai Lu wrote:
>
> it seem using pci_printk or acpi_printk.. could be more flexible.
>
> otherwise will need to keep update linux/kernel.h to add so call subsys tags...
>
> use only need to
> have DEFINE_LOGLEVEL_SETUP(xxx) in c
> and have DECLARE_LOGLEVEL(xxx) in .h
> then just use xxx_printk
>

Uh? You can add the subsys tags elsewhere if you prefer too.

However, there are a few important differences to keep in mind. Tags
get logged in the dmesg buffer even if not printed to the kernel,
whereas a jump-based architecture will not just suppress the output, but
even the formatting of the output. Either is a good thing for certain
things, and a bad thing for other things.

I personally think the kind of things discussed belong in the category
of "always put in the dmesg buffer", and like the idea of
subsystem-tagging them.

-hpa


\
 
 \ /
  Last update: 2008-09-16 19:57    [W:0.063 / U:1.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site