From 5fc4cdbba48da4b13ddf5a92cd3d6beb4e49db10 Mon Sep 17 00:00:00 2001 From: Niklas Cassel Date: Fri, 1 Jun 2018 13:36:05 +0200 Subject: [PATCH] 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: Niklas Cassel Signed-off-by: Bjorn Andersson --- qdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdl.c b/qdl.c index 9d15be5..8cf1011 100644 --- a/qdl.c +++ b/qdl.c @@ -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;