From: Stephen Hemminger <shemminger@vyatta.com>
To: chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: [PATCH] atm: fix non-const printk argument
Date: Fri, 20 Mar 2009 09:44:02 -0700 [thread overview]
Message-ID: <20090320094402.5bf234b3@nehalam> (raw)
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;
}
next reply other threads:[~2009-03-20 16:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 16:44 Stephen Hemminger [this message]
2009-03-22 2:09 ` [PATCH] atm: fix non-const printk argument David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090320094402.5bf234b3@nehalam \
--to=shemminger@vyatta.com \
--cc=chas@cmf.nrl.navy.mil \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox