lkml.org 
[lkml]   [2010]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 22/28] printk,kdb: capture printk() when in kdb shell
    On Fri, 12 Feb 2010 16:35:37 -0600 Jason Wessel <jason.wessel@windriver.com> wrote:

    > @@ -609,6 +610,14 @@ asmlinkage int printk(const char *fmt, ...)
    > va_list args;
    > int r;
    >
    > +#ifdef CONFIG_KGDB_KDB
    > + if (unlikely(kdb_trap_printk)) {
    > + va_start(args, fmt);
    > + r = vkdb_printf(fmt, args);
    > + va_end(args);
    > + return r;
    > + }
    > +#endif
    > va_start(args, fmt);
    > r = vprintk(fmt, args);
    > va_end(args);

    this?

    --- a/kernel/printk.c~a
    +++ a/kernel/printk.c
    @@ -594,7 +594,11 @@ asmlinkage int printk(const char *fmt, .
    int r;

    va_start(args, fmt);
    +#ifdef CONFIG_KGDB_KDB
    + r = vkdb_printf(fmt, args);
    +#else
    r = vprintk(fmt, args);
    +#endif
    va_end(args);

    return r;
    _


    \
     
     \ /
      Last update: 2010-02-12 23:57    [W:0.050 / U:61.816 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site