diff options
author | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-02-25 14:31:29 +0200 |
---|---|---|
committer | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-03-04 17:07:45 +0200 |
commit | fa736887f4da324fd8d34003ff0336430aa251ec (patch) | |
tree | 307be38ff4227a76e0f4a2f14012ecf4fc916695 /src/modules | |
parent | 656fc6660fac6ad4524fd2b679cbd35c69033d3b (diff) |
bluetooth: hsp case, check l for appropriate error message
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 2 |
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; } |