From 1abf0890d94372e5a17dbfe34da941ba76136a3c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 3 Jul 2020 15:18:58 -0400 Subject: [PATCH] Show function errors in testclient-promisc.c --- examples/testclient-promisc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/testclient-promisc.c b/examples/testclient-promisc.c index 4fe24ab..03e774b 100644 --- a/examples/testclient-promisc.c +++ b/examples/testclient-promisc.c @@ -80,13 +80,15 @@ int main(int argc, char **argv) { patty_ax25_frame frame; if (patty_ax25_frame_decode(&frame, PATTY_AX25_FRAME_NORMAL, buf, readlen) < 0) { - perror("Unable to decode frame"); + fprintf(stderr, "%s: %s: %s\n", + argv[0], "patty_ax25_frame_decode()", strerror(errno)); goto error_ax25_frame_decode; } if (patty_print_frame(stdout, &frame, buf, readlen) < 0) { - perror("Unable to print frame"); + fprintf(stderr, "%s: %s: %s\n", + argv[0], "patty_print_frame()", strerror(errno)); goto error_print_frame; }