summaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2008-03-18 14:04:19 +1100
committerJon Loeliger <jdl@loeliger.com>2008-03-23 08:00:33 -0500
commit1577696b6d09acafa055957ecc6071b305d6fe9d (patch)
treeabbac7302ca86ae19113422acce646d6e785664d /dtc.c
parent2192d46dfdbb05cea13c853f7579b1386cdc4380 (diff)
downloaddevice-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc.c b/dtc.c
index 75517f9..c641491 100644
--- a/dtc.c
+++ b/dtc.c
@@ -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[])