lkml.org 
[lkml]   [2007]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/7] Add a new debug function to kernel.h
    Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org>
    ---

    Index: linux/include/linux/kernel.h
    ===================================================================
    --- linux.orig/include/linux/kernel.h
    +++ linux/include/linux/kernel.h
    @@ -228,11 +228,18 @@ extern void print_hex_dump(const char *l
    /* If you are writing a driver, please use dev_dbg instead */
    #define pr_debug(fmt,arg...) \
    printk(KERN_DEBUG fmt,##arg)
    +#define pr_err(fmt,arg...) \
    + printk(KERN_ERR fmt,##arg)
    #else
    static inline int __attribute__ ((format (printf, 1, 2)))
    pr_debug(const char * fmt, ...)
    {
    return 0;
    }
    +
    +static inline int __attribute__ ((format (printf, 1, 2))) pr_err(const
    char * fmt, ...)
    +{
    + return 0;
    +}
    #endif

    #define pr_info(fmt,arg...) \
    --

    -
    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: 2007-06-09 00:33    [W:0.032 / U:0.924 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site