[PATCH 2.4] cleanup printk __FUNCTION__ in clocks.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch against linux_2_4 cleans up this little compilation error:

clocks.c: In function `set_au1x00_lcd_clock':
clocks.c:89: error: parse error before string constant
clocks.c:90: warning: left-hand operand of comma expression has no effect
clocks.c:90: error: parse error before ')' token


Index: arch/mips/au1000/common/clocks.c
===================================================================
RCS file: /home/kevint/whdd/linux-mips-cvs/linux/arch/mips/au1000/common/clocks.c,v
retrieving revision 1.2.2.5
diff -u -r1.2.2.5 clocks.c
--- arch/mips/au1000/common/clocks.c	12 May 2004 07:31:08 -0000	1.2.2.5
+++ arch/mips/au1000/common/clocks.c	10 Jun 2005 20:55:59 -0000
@@ -85,9 +85,8 @@
 		lcd_clock = sys_busclk / 4;
 
 	if (lcd_clock > 50000) /* Epson MAX */
-			printk(__FUNCTION__
-			       ": warning: LCD clock too high (%d KHz)\n",
-			       lcd_clock);
+			printk("%s: warning: LCD clock too high (%d KHz)\n",
+			       __FUNCTION__, lcd_clock);
 }
 
 unsigned int get_au1x00_lcd_clock(void)


-- 
The moon is waxing crescent, 12.3% illuminated, 3.4 days old.



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux