From b135064465de9fc261347d665361c3b86c2dc4f9 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 2 Nov 2024 20:55:53 +0100 Subject: [PATCH] jffs2reset: print deprecation message Signed-off-by: John Crispin --- jffs2reset.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jffs2reset.c b/jffs2reset.c index acff913..0985b3a 100644 --- a/jffs2reset.c +++ b/jffs2reset.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -103,6 +104,10 @@ int main(int argc, char **argv) { struct volume *v; int ch, yes = 0, reset = 0, keep = 0; + + if (!strcmp(basename(argv[0]), "jffs2reset")) + ULOG_ERR("jffs2reset will be deprected, please use factoryreset going forward\n"); + while ((ch = getopt(argc, argv, "yrk")) != -1) { switch(ch) { case 'y': -- 2.30.2