summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-10-14 14:03:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-14 14:04:46 +0200
commit51c92d290b54da6e865d3710fb730c93f4e5f929 (patch)
treebb68b9faadfed9c093156a198cf9fd24c58b8871 /arch/x86
parent95c9690c9ed513b0b8c6db0095ac0b139fdf50c9 (diff)
downloadbarebox-51c92d290b54da6e865d3710fb730c93f4e5f929.tar.gz
x86: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boards/x86_generic/generic_pc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/boards/x86_generic/generic_pc.c b/arch/x86/boards/x86_generic/generic_pc.c
index 172c531..74a7224 100644
--- a/arch/x86/boards/x86_generic/generic_pc.c
+++ b/arch/x86/boards/x86_generic/generic_pc.c
@@ -43,7 +43,6 @@ extern uint8_t pers_env_drive;
static int devices_init(void)
{
- int rc;
struct cdev *cdev;
/* extended memory only */
@@ -57,7 +56,7 @@ static int devices_init(void)
pers_env_storage * 512,
(unsigned)pers_env_size * 512,
DEVFS_PARTITION_FIXED, "env0");
- printf("Partition: %d\n", IS_ERR(cdev) ? PTR_ERR(cdev) : 0);
+ printf("Partition: %ld\n", IS_ERR(cdev) ? PTR_ERR(cdev) : 0);
} else
printf("No persistent storage defined\n");