Skip to contentSkip to conversation

advansys printk fix

PATCH In review [email protected] 2 participants 2 messages Oct 2, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/17 advansys printk fix

From: Andrew Morton <[email protected]>

Fix this:

drivers/scsi/advansys.c: In function 'advansys_board_found':
drivers/scsi/advansys.c:16320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'

and clean the code up a little.

Cc James Bottomley <[email protected]>

---

 drivers/scsi/advansys.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/scsi/advansys.c renamed from drivers/scsi/advansys.c~advansys-printk-fix +5 -4
diff -puN drivers/scsi/advansys.c~advansys-printk-fix drivers/scsi/advansys.c
@@ -14254,10 +14254,11 @@ advansys_board_found(int iop, struct dev
 		boardp->ioremap_addr = ioremap(pci_resource_start(pdev, 1),
 					       boardp->asc_n_io_port);
 		if (!boardp->ioremap_addr) {
-			ASC_PRINT3
-			    ("advansys_board_found: board %d: ioremap(%x, %d) returned NULL\n",
-			     boardp->id, pci_resource_start(pdev, 1),
-			     boardp->asc_n_io_port);
+			ASC_PRINT3("advansys_board_found: board %d: "
+				"ioremap(%llx, %d) returned NULL\n",
+				boardp->id,
+				(unsigned long long)pci_resource_start(pdev, 1),
+				boardp->asc_n_io_port);
 			goto err_shost;
 		}
 		adv_dvc_varp->iop_base = (AdvPortAddr)boardp->ioremap_addr

_

#1 lore raw
Quoted 8 lines · On Tue, Oct 02, 2007 at 02:38:09PM -0700, [email protected] wrote:

From: Andrew Morton <[email protected]>

Fix this:

drivers/scsi/advansys.c: In function 'advansys_board_found':
drivers/scsi/advansys.c:16320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'

and clean the code up a little.

This'll conflict with a few of the patches in my tree; I have fixed the warning ... James, any intent to merge the most recent series of patches I sent?

Signature · 4 lines
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."