summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-06-27 13:01:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-06-27 13:03:28 +0200
commit429fba777e8c0cb10a335504927a59c46c412126 (patch)
tree46b20452c9efca0cd53b794d8dcadb7e5dc42f87 /arch/arm/mach-omap
parenta27f3df9fea104a97ef4b96dd01f6fd4938487d1 (diff)
downloadbarebox-429fba777e8c0cb10a335504927a59c46c412126.tar.gz
barebox-429fba777e8c0cb10a335504927a59c46c412126.tar.xz
ARM: omap: Fix error printing
Presumably the code wanted to print the error with the %d format specifier. Actually pass the error code by using PTR_ERR() and not IS_ERR(). While at it use %ld to print a unsigned long variable to get rid of a compiler warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
-rw-r--r--arch/arm/mach-omap/omap_generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap/omap_generic.c b/arch/arm/mach-omap/omap_generic.c
index 694c951037..a1c0aeb595 100644
--- a/arch/arm/mach-omap/omap_generic.c
+++ b/arch/arm/mach-omap/omap_generic.c
@@ -141,8 +141,8 @@ static int omap_env_init(void)
rootpath = cdev_mount_default(cdev, NULL);
if (IS_ERR(rootpath)) {
- pr_err("Failed to load environment: mount %s failed (%d)\n",
- cdev->name, IS_ERR(rootpath));
+ pr_err("Failed to load environment: mount %s failed (%ld)\n",
+ cdev->name, PTR_ERR(rootpath));
goto out;
}
ret = symlink(rootpath, "/boot");