Patchwork atm: fix non-const printk argument

login
register
mail settings
Submitter stephen hemminger
Date March 20, 2009, 4:44 p.m.
Message ID <20090320094402.5bf234b3@nehalam>
Download mbox | patch
Permalink /patch/24757/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - March 20, 2009, 4:44 p.m.
Change printk() argument to fix compiler warning.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - March 22, 2009, 2:09 a.m.
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Fri, 20 Mar 2009 09:44:02 -0700

> Change printk() argument to fix compiler warning.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/drivers/atm/iphase.c	2009-03-20 09:27:01.892901660 -0700
+++ b/drivers/atm/iphase.c	2009-03-20 09:27:26.415839648 -0700
@@ -977,9 +977,7 @@  static void xdump( u_char*  cp, int  len
             else
                 pBuf += sprintf( pBuf, "." );
                 }
-        sprintf( pBuf, "\n" );
-        // SPrint(prntBuf);
-        printk(prntBuf);
+        printk("%s\n", prntBuf);
         count += col;
         pBuf = prntBuf;
     }