From bc1040362c26828989e1a8ec2b22ebc9be20df20 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 Jun 2011 11:11:37 -0400 Subject: flash_info: deprecate Artem: tweak the warning message Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- feature-removal-schedule.txt | 7 +++++++ flash_info.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/feature-removal-schedule.txt b/feature-removal-schedule.txt index 6e2bfc9..a5980f7 100644 --- a/feature-removal-schedule.txt +++ b/feature-removal-schedule.txt @@ -32,4 +32,11 @@ We cannot assume that mtd device names follow the "/dev/mtd%d" pattern, because it is up to udev rules to name the devices. So we are removing the -m option. For now, we just have a warning, but the option will be removed in release 1.4.6. + +--------------------------- +3. flash_info utility + +This is duplicating behavior with the mtdinfo utility. Now the util +warns when people use it, but it'll be removed in release 1.4.6. + --------------------------- diff --git a/flash_info.c b/flash_info.c index 6c518b2..d9a4492 100644 --- a/flash_info.c +++ b/flash_info.c @@ -27,6 +27,8 @@ int main(int argc, char *argv[]) { int fd, i, regcount; + warnmsg("this utility is deprecated in favor of `mtdinfo` and will be removed in mtd-utils-1.4.6"); + if (argc < 2) usage(1); if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) -- cgit v1.2.3