lkml.org 
[lkml]   [2004]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Compile Regression in 2.4.25-pre8][PATCH 39/42]

    st5481_b.c:122: warning: concatenation of string literals with __FUNCTION__ is deprecated
    [etc]
    st5481_usb.c:134: warning: concatenation of string literals with __FUNCTION__ is deprecated
    [etc]

    __FUNCTION__ shouldn't be concatenated with other literals.

    diff -Nru -X dontdiff linux-2.4-vanilla/drivers/isdn/hisax/st5481.h linux-2.4/drivers/isdn/hisax/st5481.h
    --- linux-2.4-vanilla/drivers/isdn/hisax/st5481.h Fri Jun 13 16:51:34 2003
    +++ linux-2.4/drivers/isdn/hisax/st5481.h Sat Jan 31 19:10:56 2004
    @@ -219,13 +219,13 @@
    #define L1_EVENT_COUNT (EV_TIMER3 + 1)

    #define ERR(format, arg...) \
    -printk(KERN_ERR __FILE__ ": " __FUNCTION__ ": " format "\n" , ## arg)
    +printk(KERN_ERR __FILE__ ": %s: " format "\n" , __FUNCTION__ , ## arg)

    #define WARN(format, arg...) \
    -printk(KERN_WARNING __FILE__ ": " __FUNCTION__ ": " format "\n" , ## arg)
    +printk(KERN_WARNING __FILE__ ": %s: " format "\n" , __FUNCTION__ , ## arg)

    #define INFO(format, arg...) \
    -printk(KERN_INFO __FILE__ ": " __FUNCTION__ ": " format "\n" , ## arg)
    +printk(KERN_INFO __FILE__ ": %s: " format "\n" , __FUNCTION__ , ## arg)

    #include "isdnhdlc.h"
    #include "fsm.h"
    --
    Reply-To: kronos@kronoz.cjb.net
    Home: http://kronoz.cjb.net
    Do, or do not. There is no try.
    -
    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 14:00    [W:5.298 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site