From 0bf37ae4c45a0463671a50b443e1bafec730dd4d Mon Sep 17 00:00:00 2001 From: Pavel Machek <pavel@ucw.cz> Date: Tue, 26 Aug 2014 13:49:35 +0200 Subject: [PATCH] init/do_mounts: better syntax description Specify hex device number unambiquously. Signed-off-by: Pavel Machek <pavel@denx.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz> --- init/do_mounts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 82f22885c87e9..9b3565c41502a 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -182,7 +182,8 @@ static dev_t devt_from_partuuid(const char *uuid_str) /* * Convert a name into device number. We accept the following variants: * - * 1) device number in hexadecimal represents itself + * 1) <hex_major><hex_minor> device number in hexadecimal represents itself + * no leading 0x, for example b302. * 2) /dev/nfs represents Root_NFS (0xff) * 3) /dev/<disk_name> represents the device number of disk * 4) /dev/<disk_name><decimal> represents the device number -- GitLab