summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-02-25 14:31:29 +0200
committerMarc-André Lureau <marc-andre.lureau@nokia.com>2009-03-04 17:07:45 +0200
commitfa736887f4da324fd8d34003ff0336430aa251ec (patch)
tree307be38ff4227a76e0f4a2f14012ecf4fc916695
parent656fc6660fac6ad4524fd2b679cbd35c69033d3b (diff)
bluetooth: hsp case, check l for appropriate error message
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 72cf2084..39a4a3b3 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -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;
}