Send commitlog mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r4030 - trunk/src/target/gsm/src/util
([EMAIL PROTECTED])
--- Begin Message ---
Author: erin_yueh
Date: 2008-02-08 19:02:15 +0100 (Fri, 08 Feb 2008)
New Revision: 4030
Modified:
trunk/src/target/gsm/src/util/atcmd.c
trunk/src/target/gsm/src/util/shell.c
Log:
gsmd: fix error handling in libgsmd-tool (Paulius Zaleckas)
Modified: trunk/src/target/gsm/src/util/atcmd.c
===================================================================
--- trunk/src/target/gsm/src/util/atcmd.c 2008-02-08 17:35:43 UTC (rev
4029)
+++ trunk/src/target/gsm/src/util/atcmd.c 2008-02-08 18:02:15 UTC (rev
4030)
@@ -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
Modified: trunk/src/target/gsm/src/util/shell.c
===================================================================
--- trunk/src/target/gsm/src/util/shell.c 2008-02-08 17:35:43 UTC (rev
4029)
+++ trunk/src/target/gsm/src/util/shell.c 2008-02-08 18:02:15 UTC (rev
4030)
@@ -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. */
--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog