diff options
author | Krzysztof Halasa <khc@pm.waw.pl> | 2010-12-21 00:02:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-21 09:02:40 +0100 |
commit | d66ae58cd87c78b76652ecf750371b1e005d44de (patch) | |
tree | 90e82954c07e8e412f7c72d402c64b5de2f182f4 /drivers/nor | |
parent | b754bc4cf0f2687411e9dde3a2115a9c5b8da79a (diff) | |
download | barebox-d66ae58cd87c78b76652ecf750371b1e005d44de.tar.gz barebox-d66ae58cd87c78b76652ecf750371b1e005d44de.tar.xz |
Cosmetic fixes, including format attributes for printf() and friends.
Signed-off-by: Krzysztof HaĆasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/nor')
-rw-r--r-- | drivers/nor/cfi_flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/nor/cfi_flash.c b/drivers/nor/cfi_flash.c index 88ca7e6af2..1bd1377722 100644 --- a/drivers/nor/cfi_flash.c +++ b/drivers/nor/cfi_flash.c @@ -485,7 +485,7 @@ static int __cfi_erase(struct cdev *cdev, size_t count, unsigned long offset, unsigned long start, end; int i, ret = 0; - debug("%s: erase 0x%08x (size %d)\n", __func__, offset, count); + debug("%s: erase 0x%08lx (size %d)\n", __func__, offset, count); start = find_sector(finfo, cdev->dev->map_base + offset); end = find_sector(finfo, cdev->dev->map_base + offset + count - 1); @@ -656,8 +656,8 @@ static int cfi_protect(struct cdev *cdev, size_t count, unsigned long offset, in int i, ret = 0; const char *action = (prot? "protect" : "unprotect"); - printf("%s: %s 0x%08x (size %d)\n", __FUNCTION__, - action, cdev->dev->map_base + offset, count); + printf("%s: %s 0x%08lx (size %d)\n", __FUNCTION__, + action, cdev->dev->map_base + offset, count); start = find_sector(finfo, cdev->dev->map_base + offset); end = find_sector(finfo, cdev->dev->map_base + offset + count - 1); @@ -1012,7 +1012,7 @@ static int cfi_probe (struct device_d *dev) info->base = (void __iomem *)dev->map_base; if (dev->size == 0) { - printf("cfi_probe: size : 0x%08x\n", info->size); + printf("cfi_probe: size : 0x%08lx\n", info->size); dev->size = info->size; } |