From 8d8990a07eae43ee541d135b1c2204295a7cb7fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Owoc?= Date: Sat, 8 Nov 2025 22:08:18 +0100 Subject: [PATCH] mtd: add dump command help MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add missing dump command help. Signed-off-by: Paweł Owoc Link: https://github.com/openwrt/openwrt/pull/20725 Signed-off-by: Hauke Mehrtens --- package/system/mtd/src/mtd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c index be6de2f63e..847170cb40 100644 --- a/package/system/mtd/src/mtd.c +++ b/package/system/mtd/src/mtd.c @@ -774,6 +774,7 @@ static void usage(void) fprintf(stderr, "Usage: mtd [ ...] [ ...] [:...]\n\n" "The device is in the format of mtdX (eg: mtd4) or its label.\n" "mtd recognizes these commands:\n" + " dump dump mtd device\n" " unlock unlock the device\n" " refresh refresh mtd partition\n" " erase erase all data on device\n" @@ -816,7 +817,10 @@ static void usage(void) if (mtd_fixtrx) { fprintf(stderr, " -M magic number of the image header in the partition (for fixtrx)\n" - " -o offset offset of the image header in the partition(for fixtrx)\n"); + " -o offset offset of the image header in the partition (for dump / fixtrx)\n"); + } else { + fprintf(stderr, + " -o offset offset of the image header in the partition (for dump)\n"); } if (mtd_fixtrx || mtd_fixseama || mtd_fixwrg || mtd_fixwrgg) { fprintf(stderr, -- 2.30.2