From 01a5c953a31863ee9c1a961787b73a33827c0eea Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 2 Dec 2008 14:11:54 +0000 Subject: [PATCH] Fix an off-by one printing error SVN-Revision: 13469 --- target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0d5bd84ec4b..6f74945e583 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); -- 2.30.2