bluetooth: hsp case, check l for appropriate error message
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Wed, 25 Feb 2009 12:31:29 +0000 (14:31 +0200)
committerMarc-André Lureau <marc-andre.lureau@nokia.com>
Wed, 4 Mar 2009 15:07:45 +0000 (17:07 +0200)
src/modules/bluetooth/module-bluetooth-device.c

index 72cf208..39a4a3b 100644 (file)
@@ -921,7 +921,7 @@ static int hsp_process_push(struct userdata *u) {
             if (l < 0 && errno == EINTR)
                 continue;
             else {
-                pa_log_error("Failed to read data from SCO socket: %s", ret < 0 ? pa_cstrerror(errno) : "EOF");
+                pa_log_error("Failed to read data from SCO socket: %s", l < 0 ? pa_cstrerror(errno) : "EOF");
                 ret = -1;
                 break;
             }