From 158d7961bf4a372068043e63a8cf6f01ca3c488f Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 2 Dec 2008 14:11:54 +0000 Subject: Fix an off-by one printing error git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13469 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/brcm63xx/files/drivers') 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 0d5bd84ec..6f74945e5 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); -- cgit v1.2.3