Hi List, R4030 is committed for error handling in libgsmd-tool. Thanks for Paulius Zaleckas!
Regards, Erin
Index: src/util/shell.c =================================================================== --- src/util/shell.c (revision 4029) +++ src/util/shell.c (working copy) @@ -605,6 +605,8 @@ 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. */ Index: src/util/atcmd.c =================================================================== --- src/util/atcmd.c (revision 4029) +++ src/util/atcmd.c (working copy) @@ -75,7 +75,7 @@ } rc = lgsm_handle_packet(lgsmh, buf, rc); if (rc < 0) - printf("ERROR processing packet: %d(%s)\n", rc, strerror(rc)); + printf("ERROR processing packet: %d(%s)\n", rc, strerror(-rc)); } if (FD_ISSET(0, &readset)) { /* we've received something on stdin. send it as passthrough