Commit 5fc4cdbb authored by Niklas Cassel's avatar Niklas Cassel Committed by Bjorn Andersson
Browse files

qdl: fix error message referring to ttyUSB1



Since it is by no means certain that the current tty is ttyUSB1,
do not assume it to be so.

Unfortunately we do not know the current tty in main().
It would be possible to refactor the code so that we could print
the current tty, but since the only consumer of that information
would be this error message, that refactoring seems unjustified.
Signed-off-by: default avatarNiklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 37edf318
......@@ -308,7 +308,7 @@ int main(int argc, char **argv)
out:
ret = tcsetattr(fd, TCSANOW, &tios);
if (ret < 0)
warn("unable to restore tios of ttyUSB1");
warn("unable to restore tios");
close(fd);
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment