lkml.org 
[lkml]   [2001]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: System hangs during interruptible_sleep_on_timeout() under 2.4.9

    On Wed, 26 Sep 2001, Russell King wrote:

    > > printk("<%d>", irq);

    > Hmm, isn't <0>, <1> etc used to encode the printk level in the string
    > though?

    yes. the above will still be printed, because there is no newline in the
    printk. The first printk (which is very likely <0>), will be interpreted
    as KERN_EMERG and will be snipped, the rest of the 'line' will be printed.
    (until something printk's a \n, when the whole thing starts again.) But
    you are right, it's more consistent and safer to use eg. "(%d)".

    Ingo

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:03    [W:0.023 / U:0.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site