linux-mips
[Top] [All Lists]

[PATCH 2.4] cleanup printk __FUNCTION__ in clocks.c

To: linux-mips <linux-mips@linux-mips.org>
Subject: [PATCH 2.4] cleanup printk __FUNCTION__ in clocks.c
From: Kevin Turner <kevin.m.turner@pobox.com>
Date: Fri, 10 Jun 2005 14:05:53 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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.


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.4] cleanup printk __FUNCTION__ in clocks.c, Kevin Turner <=