9
0
Fork 0

ipe337: fix printf compiler warnings

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-01-07 11:36:36 +01:00
parent c65d601648
commit 8cfbcc7d82
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ static int do_alternate(struct command *cmdtp, int argc, char *argv[])
ptr = buf;
if ((*ptr) != MAGIC) {
printf("Wrong magic! Expected 0x%08x, got 0x%08x.\n", MAGIC, *ptr);
printf("Wrong magic! Expected 0x%08x, got 0x%08lx.\n", MAGIC, *ptr);
return 1;
}
@ -38,7 +38,7 @@ static int do_alternate(struct command *cmdtp, int argc, char *argv[])
} while (val >>= 1);
}
printf("Bitcount : %d\n", bitcount);
printf("Bitcount : %ld\n", bitcount);
free(buf);
return (bitcount & 1) ? 3 : 2;