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; }