ntdll: Make set_line_control() for a serial device print slightly more informative messages.
This commit is contained in:
parent
a20b07c558
commit
a63be0823a
|
@ -588,9 +588,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
|
|||
port.c_iflag &= ~(ISTRIP|BRKINT|IGNCR|ICRNL|INLCR|PARMRK);
|
||||
#endif
|
||||
port.c_iflag |= IGNBRK | INPCK;
|
||||
|
||||
port.c_oflag &= ~(OPOST);
|
||||
|
||||
port.c_cflag &= ~(HUPCL);
|
||||
port.c_cflag |= CLOCAL | CREAD;
|
||||
|
||||
|
@ -633,7 +631,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
|
|||
}
|
||||
else
|
||||
{
|
||||
ERR("Cannot set MARK Parity\n");
|
||||
FIXME("Cannot set MARK Parity\n");
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
break;
|
||||
|
@ -645,13 +643,13 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
|
|||
}
|
||||
else
|
||||
{
|
||||
ERR("Cannot set SPACE Parity\n");
|
||||
FIXME("Cannot set SPACE Parity\n");
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
ERR("Parity\n");
|
||||
FIXME("Parity %d is not supported\n", slc->Parity);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -663,7 +661,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
|
|||
case 7: port.c_cflag |= CS7; break;
|
||||
case 8: port.c_cflag |= CS8; break;
|
||||
default:
|
||||
ERR("ByteSize\n");
|
||||
FIXME("ByteSize %d is not supported\n", bytesize);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -673,7 +671,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
|
|||
case ONE5STOPBITS: /* will be selected if bytesize is 5 */
|
||||
case TWOSTOPBITS: port.c_cflag |= CSTOPB; break;
|
||||
default:
|
||||
ERR("StopBits\n");
|
||||
FIXME("StopBits %d is not supported\n", stopbits);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
/* otherwise it hangs with pending input*/
|
||||
|
|
Loading…
Reference in New Issue