summaryrefslogtreecommitdiff
path: root/src/util/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/shell.c')
-rw-r--r--src/util/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/shell.c b/src/util/shell.c
index ae92611..b7d65f5 100644
--- a/src/util/shell.c
+++ b/src/util/shell.c
@@ -605,6 +605,8 @@ int shell_main(struct lgsm_handle *lgsmh, int sync)
break;
}
rc = lgsm_handle_packet(lgsmh, buf, rc);
+ if (rc < 0)
+ printf("ERROR processing packet: %d(%s)\n", rc, strerror(-rc));
}
if (FD_ISSET(0, &readset)) {
/* we've received something on stdin. */
personal git repositories of Harald Welte. Your mileage may vary