|
From: <lin...@us...> - 2003-11-14 11:50:20
|
Update of /cvsroot/dvbtools/dvbtune
In directory sc8-pr-cvs1:/tmp/cvs-serv32169
Modified Files:
tune.c
Log Message:
Bug fix from John Knottenbelt
Index: tune.c
===================================================================
RCS file: /cvsroot/dvbtools/dvbtune/tune.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** tune.c 9 Oct 2003 18:24:42 -0000 1.18
--- tune.c 14 Nov 2003 11:50:17 -0000 1.19
***************
*** 235,242 ****
fprintf(stderr,"Getting frontend event\n");
if ((status = ioctl(fd_frontend, FE_GET_EVENT, &event)) < 0){
! if (status != -EOVERFLOW) {
perror("FE_GET_EVENT");
return -1;
}
}
}
--- 235,245 ----
fprintf(stderr,"Getting frontend event\n");
if ((status = ioctl(fd_frontend, FE_GET_EVENT, &event)) < 0){
! if (errno != EOVERFLOW) {
perror("FE_GET_EVENT");
+ fprintf(stderr,"status = %d\n", status);
+ fprintf(stderr,"errno = %d\n", errno);
return -1;
}
+ else fprintf(stderr,"Overflow error, trying again (status = %d, errno = %d)", status, errno);
}
}
|