1
0

print errorstring when /dev/parportX can't be opened

This commit is contained in:
michael 2007-03-14 23:22:50 +00:00
parent 543579946c
commit 459c6ef789

View File

@ -349,6 +349,9 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
DPRINTF("opening %s\n", ppdev);
parportfd = open(ppdev, O_RDWR|O_EXCL);
parportnum++;
if (parportfd < 0)
fprintf(stderr,"Can't open %s: %s\n", ppdev, strerror(errno));
}
if (parportfd >= 0) {