From: Marc-André Lureau Date: Wed, 25 Feb 2009 12:31:29 +0000 (+0200) Subject: bluetooth: hsp case, check l for appropriate error message X-Git-Tag: submit/2.0-panda/20130828.192557~2082^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa736887f4da324fd8d34003ff0336430aa251ec;p=profile%2Fivi%2Fpulseaudio-panda.git bluetooth: hsp case, check l for appropriate error message --- diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 72cf208..39a4a3b 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; }