diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-03-18 14:04:19 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@loeliger.com> | 2008-03-23 08:00:33 -0500 |
commit | 1577696b6d09acafa055957ecc6071b305d6fe9d (patch) | |
tree | abbac7302ca86ae19113422acce646d6e785664d /dtc.c | |
parent | 2192d46dfdbb05cea13c853f7579b1386cdc4380 (diff) | |
download | device-tree-compiler-1577696b6d09acafa055957ecc6071b305d6fe9d.tar.gz |
dtc: Change exit code for usage message
If dtc's command line arguments are invalid, it prints a usage message
and returns exit code 2. That's the same exit code as for a failed
check, which is potentially confusing if running dtc from an automated
harness. Therefore this patch changes the usage exit code to 3.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
-rw-r--r-- | dtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ static void __attribute__ ((noreturn)) usage(void) fprintf(stderr, "\t\tForce - try to produce output even if the input tree has errors\n"); fprintf(stderr, "\t-v\n"); fprintf(stderr, "\t\tPrint DTC version and exit\n"); - exit(2); + exit(3); } int main(int argc, char *argv[]) |