diff options
| author | Christoph Hellwig <hch@sgi.com> | 2003-02-25 01:51:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-25 01:51:33 -0800 |
| commit | 47bc91fffaa2f102b062f820aaafbcf21637ea8c (patch) | |
| tree | c0ad5175650cd1c5a60897d5a67085669c28c59b /init | |
| parent | 85b49be72b7cf096f72607b5f88003442bcd2d92 (diff) | |
[PATCH] remove kdevname abuse from init/do_mount.c
use bdevname() for block devices.
Diffstat (limited to 'init')
| -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"); |
