]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.drivers/0017-Staging-Fix-gcc-warnings-in-sxg.patch
Revert "Move xen patchset to new version's subdir."
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.drivers / 0017-Staging-Fix-gcc-warnings-in-sxg.patch
CommitLineData
00e5a55c
BS
1From d63d692a44c918723895f792ffd17eab7bcfb8ef Mon Sep 17 00:00:00 2001
2From: J.R. Mauro <jrm8005@gmail.com>
3Date: Fri, 3 Oct 2008 12:21:49 -0400
4Subject: [PATCH 17/23] Staging: Fix gcc warnings in sxg
5Patch-mainline: 2.6.28
6
7Fix for compiler warning about format specifier in prints in
8drivers/staging/sxg/sxg.c
9Prints were using %x to print unsigned long data.
10
11
12Signed-off-by: J.R. Mauro <jrm8005@gmail.com>
13Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14---
15 drivers/staging/sxg/sxg.c | 8 ++++----
16 1 files changed, 4 insertions(+), 4 deletions(-)
17
18diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c
19index a91c9f3..0117d51 100644
20--- a/drivers/staging/sxg/sxg.c
21+++ b/drivers/staging/sxg/sxg.c
22@@ -453,7 +453,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
23 // fails. If we hit a minimum, fail.
24
25 for (;;) {
26- DBG_ERROR("%s Allocate XmtRings size[%x]\n", __FUNCTION__,
27+ DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __FUNCTION__,
28 (sizeof(SXG_XMT_RING) * 1));
29
30 // Start with big items first - receive and transmit rings. At the moment
31@@ -470,7 +470,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
32 }
33 memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1);
34
35- DBG_ERROR("%s Allocate RcvRings size[%x]\n", __FUNCTION__,
36+ DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __FUNCTION__,
37 (sizeof(SXG_RCV_RING) * 1));
38 adapter->RcvRings =
39 pci_alloc_consistent(adapter->pcidev,
40@@ -531,7 +531,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
41 return (STATUS_RESOURCES);
42 }
43
44- DBG_ERROR("%s Allocate EventRings size[%x]\n", __FUNCTION__,
45+ DBG_ERROR("%s Allocate EventRings size[%lx]\n", __FUNCTION__,
46 (sizeof(SXG_EVENT_RING) * RssIds));
47
48 // Allocate event queues.
49@@ -562,7 +562,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
50 }
51 memset(adapter->Isr, 0, sizeof(u32) * IsrCount);
52
53- DBG_ERROR("%s Allocate shared XMT ring zero index location size[%x]\n",
54+ DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n",
55 __FUNCTION__, sizeof(u32));
56
57 // Allocate shared XMT ring zero index location
58--
591.6.0.2
60