Commit d63d692a authored by J.R. Mauro's avatar J.R. Mauro Committed by Greg Kroah-Hartman

Staging: Fix gcc warnings in sxg

Fix for compiler warning about format specifier in prints in
drivers/staging/sxg/sxg.c
Prints were using %x to print unsigned long data.
Signed-off-by: default avatarJ.R. Mauro <jrm8005@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 10602db8
...@@ -453,7 +453,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -453,7 +453,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
// fails. If we hit a minimum, fail. // fails. If we hit a minimum, fail.
for (;;) { for (;;) {
DBG_ERROR("%s Allocate XmtRings size[%x]\n", __FUNCTION__, DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __FUNCTION__,
(sizeof(SXG_XMT_RING) * 1)); (sizeof(SXG_XMT_RING) * 1));
// Start with big items first - receive and transmit rings. At the moment // Start with big items first - receive and transmit rings. At the moment
...@@ -470,7 +470,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -470,7 +470,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
} }
memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1);
DBG_ERROR("%s Allocate RcvRings size[%x]\n", __FUNCTION__, DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __FUNCTION__,
(sizeof(SXG_RCV_RING) * 1)); (sizeof(SXG_RCV_RING) * 1));
adapter->RcvRings = adapter->RcvRings =
pci_alloc_consistent(adapter->pcidev, pci_alloc_consistent(adapter->pcidev,
...@@ -531,7 +531,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -531,7 +531,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
return (STATUS_RESOURCES); return (STATUS_RESOURCES);
} }
DBG_ERROR("%s Allocate EventRings size[%x]\n", __FUNCTION__, DBG_ERROR("%s Allocate EventRings size[%lx]\n", __FUNCTION__,
(sizeof(SXG_EVENT_RING) * RssIds)); (sizeof(SXG_EVENT_RING) * RssIds));
// Allocate event queues. // Allocate event queues.
...@@ -562,7 +562,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -562,7 +562,7 @@ static int sxg_allocate_resources(p_adapter_t adapter)
} }
memset(adapter->Isr, 0, sizeof(u32) * IsrCount); memset(adapter->Isr, 0, sizeof(u32) * IsrCount);
DBG_ERROR("%s Allocate shared XMT ring zero index location size[%x]\n", DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n",
__FUNCTION__, sizeof(u32)); __FUNCTION__, sizeof(u32));
// Allocate shared XMT ring zero index location // Allocate shared XMT ring zero index location
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment