bluetooth: hsp case, check l for appropriate error message

This commit is contained in:
Marc-André Lureau 2009-02-25 14:31:29 +02:00
parent 656fc6660f
commit fa736887f4

View file

@ -921,7 +921,7 @@ static int hsp_process_push(struct userdata *u) {
if (l < 0 && errno == EINTR) if (l < 0 && errno == EINTR)
continue; continue;
else { 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; ret = -1;
break; break;
} }