summaryrefslogtreecommitdiff
path: root/util/spkmodem_recv
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-05 01:53:24 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-05 01:53:24 +0100
commit2652a1ddfae2dc00cfd919ae421f4b7a2cc3a99a (patch)
tree7073a3c8572e1a5a9eea2932ca9ea1953cdc3e09 /util/spkmodem_recv
parent3fb99a017dda30aa8607a85fb8613ab10be69158 (diff)
util/spkmodem-recv: only print unhandled err on -d
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/spkmodem_recv')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index 5fa98a7..eb372fd 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -47,9 +47,9 @@ main(int argc, char *argv[])
setvbuf(stdout, NULL, _IONBF, 0);
while (!feof(stdin))
handle_audio();
- if (errno)
- err(errno, "Unhandled error upon exit. Exit status is errno.");
- return 0;
+ if (errno && debug)
+ err(errno, "Unhandled error, errno %d", errno);
+ return errno;
}
void