local fork

Dependencies:   Socket USBHostWANDongle_bleedingedge lwip-sys lwip

Dependents:   Encrypted

Fork of VodafoneUSBModem_bleedingedge by Donatien Garnier

Revision:
10:21a6f09d5631
Parent:
8:04b6a042595f
Child:
22:06fb2a93a1f6
diff -r 04b6a042595f -r 21a6f09d5631 serial/io/IOSerialStream.cpp
--- a/serial/io/IOSerialStream.cpp	Tue Jun 26 13:44:59 2012 +0000
+++ b/serial/io/IOSerialStream.cpp	Fri Jul 06 08:56:32 2012 +0000
@@ -55,7 +55,7 @@
   int ret = waitAvailable(timeout);
   if(ret)
   {
-    WARN("Error %d while waiting for incoming data");
+    WARN("Error %d while waiting for incoming data", ret);
     return ret;
   }
   int readLen = MIN( available(), maxLength );
@@ -146,7 +146,7 @@
   int ret = waitSpace(timeout);
   if(ret)
   {
-    WARN("Error %d while waiting for space");
+    WARN("Error %d while waiting for space", ret);
     return ret;
   }
   DBG("Writing %d chars", length);
@@ -163,7 +163,7 @@
       ret = waitSpace(timeout);
       if(ret)
       {
-        WARN("Error %d while waiting for space");
+        WARN("Error %d while waiting for space", ret);
         return ret;
       }
       setupWriteableISR(false);