diff mbox

[v2] flash_info: deprecate

Message ID 1307459497-2226-1-git-send-email-vapier@gentoo.org
State Accepted, archived
Headers show

Commit Message

Mike Frysinger June 7, 2011, 3:11 p.m. UTC
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
v2
	- just deprecate for now rather than straight up removal

 feature-removal-schedule.txt |    7 +++++++
 flash_info.c                 |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

Comments

Artem Bityutskiy June 8, 2011, 11:15 a.m. UTC | #1
On Tue, 2011-06-07 at 11:11 -0400, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> v2
> 	- just deprecate for now rather than straight up removal
> 
>  feature-removal-schedule.txt |    7 +++++++
>  flash_info.c                 |    2 ++
>  2 files changed, 9 insertions(+), 0 deletions(-)

Pushed to mtd-utils.git, thanks!
diff mbox

Patch

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 b710034..b15e0a9 100644
--- a/flash_info.c
+++ b/flash_info.c
@@ -73,6 +73,8 @@  int main(int argc, char *argv[])
 {
 	int fd, i, regcount;
 
+	warnmsg("this is deprecated in favor of `mtdinfo`");
+
 	if (argc < 2)
 		usage(1);
 	if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))