Skip to contentSkip to conversation

lite5200b_PM: fix compile warning

PATCH New Wolfgang Denk 1 participant 2 messages Oct 24, 2010 – Oct 26, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lite5200b_PM: fix compile warning

Fix warning:

icecube.c: In function 'lite5200b_wakeup':
icecube.c:83: warning: format '%08lx' expects type 'long unsigned int', but argument 2 has type 'void (*)(void)'

---
 board/icecube/icecube.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/icecube/icecube.c +1 -1
index 47b2195..a9e4448 100644
@@ -80,7 +80,7 @@ void lite5200b_wakeup(void)
 	/* jump back to linux kernel code */
 	linux_wakeup = SAVED_ADDR;
 	printf("\n\nLooks like we just woke, transferring control to 0x%08lx\n",
-			linux_wakeup);
+			(unsigned long)linux_wakeup);
 	linux_wakeup();
 }
 #else
Signature · 1 line
1.7.2.3
author Applied
#1 lore raw

PATCH 1/1 lite5200b_PM: fix compile warning

Quoted 9 lines · In message <[email protected]> you wrote:

Fix warning:

icecube.c: In function 'lite5200b_wakeup':
icecube.c:83: warning: format '%08lx' expects type 'long unsigned int', but argument 2 has type 'void (*)(void)'

---
 board/icecube/icecube.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are three ways to get something  done:  do  it  yourself,  hire
someone, or forbid your kids to do it.