Skip to contentSkip to conversation

atm: fix non-const printk argument

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 20, 2009 – Mar 22, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm: fix non-const printk argument

Change printk() argument to fix compiler warning.

drivers/atm/iphase.c +1 -3
@@ -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;
     }