Re: [PATCH] introduce boot_printk()

Jeremy Fitzhardinge
2008-09-16T17:44:39Z

Yinghai Lu wrote:
> On Tue, Sep 16, 2008 at 9:06 AM, H. Peter Anvin <hpa@zytor.com> wrote:
>
>> Peter Zijlstra wrote:
>>
>>>> every subsystem will have
>>>> x86_printk
>>>> acpi_printk
>>>> pci_printk
>>>>
>>> doesn't sound like an easily extensible interface, better would be
>>> extending printk with a KERN_subsys tag like proposed.
>>>
>>>
>> That would be my thinking too.
>>
>
> will be printk(KERN_PCI, KERN_DEBUG ".....") ?
> and it will be ...KERN_PCI will be int?
>

#define X86_DEBUG KERN_DEBUG SUBSYS_X86
...
printk(X86_DEBUG "woozle failed the wibble\n);

J