summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
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
commit01a5c953a31863ee9c1a961787b73a33827c0eea (patch)
tree3aa9f89dc9b02c969856df749ab2aded9acef565 /target/linux/brcm63xx
parenta3b5071341ed13ca44c316b5fd0b7bd1634b5eb5 (diff)
downloadmtk-20170518-01a5c953a31863ee9c1a961787b73a33827c0eea.zip
mtk-20170518-01a5c953a31863ee9c1a961787b73a33827c0eea.tar.gz
mtk-20170518-01a5c953a31863ee9c1a961787b73a33827c0eea.tar.bz2
Fix an off-by one printing error
SVN-Revision: 13469
Diffstat (limited to 'target/linux/brcm63xx')
-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 0d5bd84..6f74945 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);