diff options
author | J.R. Mauro <jrm8005@gmail.com> | 2008-10-03 12:21:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-10 18:31:11 -0400 |
commit | d63d692a44c918723895f792ffd17eab7bcfb8ef (patch) | |
tree | ac3b4558825f79f971e39ea015ebe15b4631fece | |
parent | 10602db812fa270fc923f5e48fb47202288828f3 (diff) |
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: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/sxg/sxg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c index a91c9f397270..0117d5129402 100644 --- a/drivers/staging/sxg/sxg.c +++ b/drivers/staging/sxg/sxg.c | |||
@@ -453,7 +453,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
453 | // fails. If we hit a minimum, fail. | 453 | // fails. If we hit a minimum, fail. |
454 | 454 | ||
455 | for (;;) { | 455 | for (;;) { |
456 | DBG_ERROR("%s Allocate XmtRings size[%x]\n", __FUNCTION__, | 456 | DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __FUNCTION__, |
457 | (sizeof(SXG_XMT_RING) * 1)); | 457 | (sizeof(SXG_XMT_RING) * 1)); |
458 | 458 | ||
459 | // Start with big items first - receive and transmit rings. At the moment | 459 | // 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 | } | 470 | } |
471 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); | 471 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); |
472 | 472 | ||
473 | DBG_ERROR("%s Allocate RcvRings size[%x]\n", __FUNCTION__, | 473 | DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __FUNCTION__, |
474 | (sizeof(SXG_RCV_RING) * 1)); | 474 | (sizeof(SXG_RCV_RING) * 1)); |
475 | adapter->RcvRings = | 475 | adapter->RcvRings = |
476 | pci_alloc_consistent(adapter->pcidev, | 476 | pci_alloc_consistent(adapter->pcidev, |
@@ -531,7 +531,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
531 | return (STATUS_RESOURCES); | 531 | return (STATUS_RESOURCES); |
532 | } | 532 | } |
533 | 533 | ||
534 | DBG_ERROR("%s Allocate EventRings size[%x]\n", __FUNCTION__, | 534 | DBG_ERROR("%s Allocate EventRings size[%lx]\n", __FUNCTION__, |
535 | (sizeof(SXG_EVENT_RING) * RssIds)); | 535 | (sizeof(SXG_EVENT_RING) * RssIds)); |
536 | 536 | ||
537 | // Allocate event queues. | 537 | // Allocate event queues. |
@@ -562,7 +562,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
562 | } | 562 | } |
563 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); | 563 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); |
564 | 564 | ||
565 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%x]\n", | 565 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n", |
566 | __FUNCTION__, sizeof(u32)); | 566 | __FUNCTION__, sizeof(u32)); |
567 | 567 | ||
568 | // Allocate shared XMT ring zero index location | 568 | // Allocate shared XMT ring zero index location |