netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atm: fix non-const printk argument
@ 2009-03-20 16:44 Stephen Hemminger
  2009-03-22  2:09 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2009-03-20 16:44 UTC (permalink / raw)
  To: chas williams - CONTRACTOR; +Cc: David Miller, netdev

Change printk() argument to fix compiler warning.

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

--- 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;
     }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] atm: fix non-const printk argument
  2009-03-20 16:44 [PATCH] atm: fix non-const printk argument Stephen Hemminger
@ 2009-03-22  2:09 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-03-22  2:09 UTC (permalink / raw)
  To: shemminger; +Cc: chas, netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-22  2:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 16:44 [PATCH] atm: fix non-const printk argument Stephen Hemminger
2009-03-22  2:09 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).