Changeset 1569

Show
Ignore:
Timestamp:
02/13/10 15:55:55 (6 months ago)
Author:
marek
Message:

batman-adv: fix endless recursion in bat_printk()

bat_printk is calling a printk which got previously substituted because of the
define in compat.h. This patch removes the define for the scope of
bat_printk.c.

Signed-off-by: Linus Lüssing <linus.luessing@…>
Signed-off-by: Andrew Lunn <andrew@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/batman-adv-kernelland/bat_printk.c

    r1559 r1569  
    3535/* Works only for digits and letters, but small and fast */ 
    3636#define TOLOWER(x) ((x) | 0x20) 
     37 
     38/* We don't want to recursively call bat_printk here 
     39   because of the previous define in compat.h */ 
     40#ifdef printk 
     41#undef printk 
     42#endif 
    3743 
    3844static int skip_atoi(const char **s)