diff options
| -rw-r--r-- | init/do_mounts.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 2090c0b0e484..3c1cf5c0c6fe 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -297,13 +297,12 @@ retry: * Allow the user to distinguish between failed open * and bad superblock on root device. */ - printk ("VFS: Cannot open root device \"%s\" or %s\n", - root_device_name, kdevname (to_kdev_t(ROOT_DEV))); - printk ("Please append a correct \"root=\" boot option\n"); - panic("VFS: Unable to mount root fs on %s", - kdevname(to_kdev_t(ROOT_DEV))); + printk("VFS: Cannot open root device \"%s\" or %s\n", + root_device_name, __bdevname(ROOT_DEV)); + printk("Please append a correct \"root=\" boot option\n"); + panic("VFS: Unable to mount root fs on %s", __bdevname(ROOT_DEV)); } - panic("VFS: Unable to mount root fs on %s", kdevname(to_kdev_t(ROOT_DEV))); + panic("VFS: Unable to mount root fs on %s", __bdevname(ROOT_DEV)); out: putname(fs_names); sys_chdir("/root"); |
