diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-09 04:04:12 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-09 04:04:12 +0000 |
| commit | 14c25887722a5b4a261af52a93547617aff658cc (patch) | |
| tree | ab04753af9ffd996e9eb90e3be3c5df17d743916 | |
| parent | 1a60eabcfe49042a63e23eb161a0bf16e9e80c33 (diff) | |
util/nvmutil: err sooner, on bad command
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 83444c03..860cc2a0 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -481,8 +481,7 @@ set_cmd(int argc, char *argv[]) else if (argc >= command[cmd_index].argc) return; - fprintf(stderr, "Too few args on command '%s'", cmd_str); - break; + err(EINVAL, "Too few args on command '%s'", cmd_str); } cmd_index = CMD_NULL; |
