public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime•net>
To: Stephen Rothwell <sfr@canb•auug.org.au>,
	akpm <akpm@linux-foundation•org>,
	xen-devel@lists•xensource.com
Cc: linux-next@vger•kernel.org, Jeremy,
	LKML <linux-kernel@vger•kernel.org>,
	Fitzhardinge <jeremy.fitzhardinge@citrix•com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle•com>
Subject: [PATCH -next] xen: fix swiotlb printk and panic args
Date: Thu, 11 Aug 2011 13:57:07 -0700	[thread overview]
Message-ID: <20110811135707.b6dfe39c.rdunlap@xenotime.net> (raw)
In-Reply-To: <20110811162058.42b462bc80e67d7a80ecff93@canb.auug.org.au>

From: Randy Dunlap <rdunlap@xenotime•net>

Fix printk() and panic() args [swap them] to fix build warnings:

drivers/xen/swiotlb-xen.c:201: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
drivers/xen/swiotlb-xen.c:201: warning: format '%d' expects type 'int', but argument 3 has type 'char *'
drivers/xen/swiotlb-xen.c:202: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
drivers/xen/swiotlb-xen.c:202: warning: format '%d' expects type 'int', but argument 3 has type 'char *'

Signed-off-by: Randy Dunlap <rdunlap@xenotime•net>
---
 drivers/xen/swiotlb-xen.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20110811.orig/drivers/xen/swiotlb-xen.c
+++ linux-next-20110811/drivers/xen/swiotlb-xen.c
@@ -198,8 +198,8 @@ error:
 		      (xen_io_tlb_nslabs << IO_TLB_SHIFT) >> 20);
 		goto retry;
 	}
-	xen_raw_printk("%s (rc:%d)", rc, m);
-	panic("%s (rc:%d)", rc, m);
+	xen_raw_printk("%s (rc:%d)", m, rc);
+	panic("%s (rc:%d)", m, rc);
 }
 
 void *

      parent reply	other threads:[~2011-08-11 20:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11  6:20 linux-next: Tree for Aug 11 Stephen Rothwell
2011-08-11 18:59 ` linux-next: Tree for Aug 11 (suspend_stats build error) Randy Dunlap
2011-08-11 20:44   ` Rafael J. Wysocki
2011-08-11 19:14 ` linux-next: Tree for Aug 11 (sound/soc + regmap) Randy Dunlap
2011-08-12  0:11   ` Mark Brown
2011-08-11 20:57 ` Randy Dunlap [this message]

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=20110811135707.b6dfe39c.rdunlap@xenotime.net \
    --to=rdunlap@xenotime$(echo .)net \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=jeremy.fitzhardinge@citrix$(echo .)com \
    --cc=konrad.wilk@oracle$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    --cc=xen-devel@lists$(echo .)xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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