[PATCH v0 00/20] mtd-utils: Return error code if command line option is unknown
Daniel Wagner
daniel.wagner at siemens.com
Mon Jun 12 03:50:41 PDT 2017
Hi,
I run into a small problem when I was setting up my build with Yocto
using mkfs.uibfs. I used an invalid option but Yocto didn't report
this as an option and continued with the build. That resulted in a
empy image and it took a while to figure out what is happening. By
returning an error code at the right spot this would really help. So
here are some patches adding a return code when an command line option
is unknown.
Thanks,
Daniel
Daniel Wagner (20):
jffs2dump: Return error code if command line option is unknown
jffs2dump: Use defines for exit code values
mkfs.jffs2: Return error code if command line option is unknown
mkfs.jffs2: Use defines for exit code values
jffsX-utils: Return error code if command line option is unknown
mtd-utils: lash_unlock: Use defines for exit code values
mtd-utils: flashcp: Drop exit code defines
mtd-utils: ftl_format: Use return directly to leave main function
mtd-utils: nandtest: Use defines for exit code values
mtd-utils: nftl_format: Use defines for exit code values
nor-utils: rfddump: Return error code if command line option is
unknown
nor-utils: rfdformat: Return error code if command line option is
unknown
integrity: Return error code if command line option is unknown
ubi-utils: ubiblock: Return error code if command line option is
unknown
ubi-utils: ubiformat: Return error code if command line option is
unknown
ubi-utils: ubimkvol: Return error code if command line option is
unknown
ubi-utils: ubirmvol: Return error code if command line option is
unknown
ubi-utils: ubirsvol: Return error code if command line option is
unknown
ubi-utils: ubiupdatevol: Return error code if command line option is
unknown
ubi-utils: mkfs.ubifs: Return error code if command line option is
unknown
jffsX-utils/jffs2dump.c | 14 +++++++-------
jffsX-utils/mkfs.jffs2.c | 6 ++++--
jffsX-utils/sumtool.c | 4 +++-
misc-utils/flash_unlock.c | 10 +++++-----
misc-utils/flashcp.c | 3 ---
misc-utils/ftl_format.c | 3 +--
nand-utils/nandtest.c | 6 +++---
nand-utils/nftl_format.c | 6 +++---
nor-utils/rfddump.c | 8 ++++----
nor-utils/rfdformat.c | 8 ++++----
tests/fs-tests/integrity/integck.c | 5 ++++-
ubi-utils/ubiblock.c | 6 +++++-
ubi-utils/ubiformat.c | 6 +++++-
ubi-utils/ubimkvol.c | 7 ++++++-
ubi-utils/ubirmvol.c | 7 ++++++-
ubi-utils/ubirsvol.c | 7 ++++++-
ubi-utils/ubiupdatevol.c | 7 ++++++-
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 6 ++++--
18 files changed, 76 insertions(+), 43 deletions(-)
--
2.9.4
More information about the linux-mtd
mailing list