diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-07 10:36:26 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-07 10:36:26 +0300 |
commit | 74bef2b8693c7e4f78e1ef742933b7231e49c7ad (patch) | |
tree | 7732ae4f5ff5338f6ac27d60d9976c066f7856ce /ubi-utils/src | |
parent | 58ece20278fdc8730a017a1744afe717ccb771de (diff) |
mtdinfo: deprecate the -m option
... because mtd device node name do not have to follow the "/dev/mtd%d"
pattern.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src')
-rw-r--r-- | ubi-utils/src/mtdinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/src/mtdinfo.c b/ubi-utils/src/mtdinfo.c index c9f6f58..820c16d 100644 --- a/ubi-utils/src/mtdinfo.c +++ b/ubi-utils/src/mtdinfo.c @@ -56,6 +56,7 @@ static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION static const char optionsstr[] = "-m, --mtdn=<MTD device number> MTD device number to get information about\n" +" (deprecated option, will be removed, do not use)\n" "-u, --ubi-info print what would UBI layout be if it was put\n" " on this MTD device\n" "-a, --all print information about all MTD devices\n" @@ -106,7 +107,7 @@ static int parse_opt(int argc, char * const argv[]) args.mtdn = simple_strtoul(optarg, &error); if (error || args.mtdn < 0) return errmsg("bad MTD device number: \"%s\"", optarg); - + warnmsg("-m/--mtdn is depecated, will be removed in mtd-utils-1.4.6"); break; case 'h': |