aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-12-02 14:11:54 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-12-02 14:11:54 +0000
commit4520a518635b34e60c292b52479f6f29bc745f21 (patch)
tree796c7faa2a673f7983cef1a036ba04a6ad58c25f /target/linux
parentc74494de8d0d7d31ddb0e79ae48e2c528dbc52cc (diff)
downloadupstream-4520a518635b34e60c292b52479f6f29bc745f21.tar.gz
upstream-4520a518635b34e60c292b52479f6f29bc745f21.tar.bz2
upstream-4520a518635b34e60c292b52479f6f29bc745f21.zip
Fix an off-by one printing error
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13469 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
index 0d5bd84ec4..6f74945e58 100644
--- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
+++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
@@ -162,7 +162,7 @@ static int bcm963xx_probe(struct platform_device *pdev)
printk(KERN_ERR PFX "Failed to ioremap\n");
return -EIO;
}
- printk(KERN_INFO PFX "0x%08x at 0x%08x\n", r->end - r->start, r->start);
+ printk(KERN_INFO PFX "0x%08x at 0x%08x\n", (r->end - r->start) + 1, r->start);
simple_map_init(&bcm963xx_map);