Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
47bc91ff
Commit
47bc91ff
authored
Feb 25, 2003
by
Christoph Hellwig
Committed by
Linus Torvalds
Feb 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove kdevname abuse from init/do_mount.c
use bdevname() for block devices.
parent
85b49be7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
init/do_mounts.c
init/do_mounts.c
+5
-6
No files found.
init/do_mounts.c
View file @
47bc91ff
...
@@ -297,13 +297,12 @@ static void __init mount_block_root(char *name, int flags)
...
@@ -297,13 +297,12 @@ static void __init mount_block_root(char *name, int flags)
* Allow the user to distinguish between failed open
* Allow the user to distinguish between failed open
* and bad superblock on root device.
* and bad superblock on root device.
*/
*/
printk
(
"VFS: Cannot open root device
\"
%s
\"
or %s
\n
"
,
printk
(
"VFS: Cannot open root device
\"
%s
\"
or %s
\n
"
,
root_device_name
,
kdevname
(
to_kdev_t
(
ROOT_DEV
)));
root_device_name
,
__bdevname
(
ROOT_DEV
));
printk
(
"Please append a correct
\"
root=
\"
boot option
\n
"
);
printk
(
"Please append a correct
\"
root=
\"
boot option
\n
"
);
panic
(
"VFS: Unable to mount root fs on %s"
,
panic
(
"VFS: Unable to mount root fs on %s"
,
__bdevname
(
ROOT_DEV
));
kdevname
(
to_kdev_t
(
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:
out:
putname
(
fs_names
);
putname
(
fs_names
);
sys_chdir
(
"/root"
);
sys_chdir
(
"/root"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment