Skip to contentSkip to conversation

parisc/harmony: fix printk format warning

PATCH In review Alexander Beregalov 2 participants 2 messages May 15, 2009

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

PATCH 1/1 parisc/harmony: fix printk format warning

Fix this warning:
sound/parisc/harmony.c:938: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'

---
 sound/parisc/harmony.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/parisc/harmony.c +1 -1
index 6055fd6..63ae0f9 100644
@@ -935,7 +935,7 @@ snd_harmony_create(struct snd_card *card,
 	h->iobase = ioremap_nocache(padev->hpa.start, HARMONY_SIZE);
 	if (h->iobase == NULL) {
 		printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n",
-		       padev->hpa.start);
+		       (unsigned long)padev->hpa.start);
 		err = -EBUSY;
 		goto free_and_ret;
 	}
Signature · 1 line
1.6.2.5
#1 lore raw

At Fri, 15 May 2009 18:00:38 +0400,

Quoted 6 lines · Alexander Beregalov

Fix this warning:
sound/parisc/harmony.c:938: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'

Applied now. Thanks.

Takashi

Quoted 20 lines
---
 sound/parisc/harmony.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/parisc/harmony.c +1 -1
index 6055fd6..63ae0f9 100644
@@ -935,7 +935,7 @@ snd_harmony_create(struct snd_card *card,
 	h->iobase = ioremap_nocache(padev->hpa.start, HARMONY_SIZE);
 	if (h->iobase == NULL) {
 		printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n",
-		       padev->hpa.start);
+		       (unsigned long)padev->hpa.start);
 		err = -EBUSY;
 		goto free_and_ret;
 	}
Signature · 1 line
1.6.2.5