[Crosstoolchain-logs] [device-tree-compiler] 266/357: dtc: Change exit code for usage message
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 1577696b6d09acafa055957ecc6071b305d6fe9d
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Tue Mar 18 14:04:19 2008 +1100
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 at gibson.dropbear.id.au>
---
dtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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[])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list