]> www.infradead.org Git - mtd-utils.git/commitdiff
flash_info: deprecate
authorMike Frysinger <vapier@gentoo.org>
Tue, 7 Jun 2011 15:11:37 +0000 (11:11 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 8 Jun 2011 11:23:40 +0000 (14:23 +0300)
Artem: tweak the warning message

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
feature-removal-schedule.txt
flash_info.c

index 6e2bfc921f2085e64bc5b89d308b0c15f6fc99c0..a5980f72c252eef02d69e2d898c2409dfcb9b858 100644 (file)
@@ -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.
+
 ---------------------------
index 6c518b22509d7020e7cbb840ae1f518a165295ec..d9a4492ac2a42804f9542ec5eaf1a35ddf496cb8 100644 (file)
@@ -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"))