diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serialclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serialclient.c b/src/serialclient.c index 6ebbafb..caafbbb 100644 --- a/src/serialclient.c +++ b/src/serialclient.c @@ -239,8 +239,10 @@ int main(int argc, char* argv[]) ret = 3; else { serial_fd = open(opt.serial_dev_, O_RDWR | O_NOCTTY); - if(serial_fd < 0) + if(serial_fd < 0) { + log_printf(ERROR, "open(%s): %s", opt.serial_dev_, strerror(errno)); ret = 2; + } else { ret = setup_tty(serial_fd, opt.baudrate_); if(ret) |