WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH -next] xen: fix swiotlb printk and panic args

To: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, akpm <akpm@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH -next] xen: fix swiotlb printk and panic args
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Date: Thu, 11 Aug 2011 13:57:07 -0700
Cc: linux-next@xxxxxxxxxxxxxxx, Jeremy, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Thu, 11 Aug 2011 13:58:42 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-Id:Subject:Cc:To:From:Date; bh=pTGCxUlKoNlj/bZ7Kxs81F6HZY47NlzzIYkTGeLYcTU=; b=hZHIK+3tXHBJZXzj6DaIYduK1SCTfrRK1jXUN4pqTi1pgwp1V2ji/HiRuXurh6iA9E9b2eEV0tZuMVqlmS0xcRuGjSzxQ3chvnqgWmloHjA/uk7hsQRHx7GoCSM+MHBu;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110811162058.42b462bc80e67d7a80ecff93@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: YPO4
References: <20110811162058.42b462bc80e67d7a80ecff93@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
---
 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 *

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH -next] xen: fix swiotlb printk and panic args, Randy Dunlap <=