Skip to content

Commit

Permalink
UBI: fix error message
Browse files Browse the repository at this point in the history
Make it print "UBI error: cannot attach mtd4"
instead of "UBI error: cannot attach 4"

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Mar 4, 2008
1 parent fc39876 commit 19cd7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,8 @@ static int __init ubi_init(void)
mutex_unlock(&ubi_devices_mutex);
if (err < 0) {
put_mtd_device(mtd);
printk(KERN_ERR "UBI error: cannot attach %s\n",
p->name);
printk(KERN_ERR "UBI error: cannot attach mtd%d\n",
mtd->index);
goto out_detach;
}
}
Expand Down

0 comments on commit 19cd7b7

Please sign in to comment.