From c485db908ae2c8f3f85eb70c2a5f86bcc2cab975 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 2 Nov 2012 18:35:08 +0100 Subject: [PATCH] serial: Fix some sr_err() items. --- hardware/common/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 9bf0c184..d688f7d1 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -281,7 +281,7 @@ SR_PRIV void *serial_backup_params(int fd) /* Returns 0 upon success, -1 upon failure. */ if (tcgetattr(fd, term) < 0) { sr_err("FD %d: Error getting serial parameters: %s.", - strerror(errno)); + fd, strerror(errno)); g_free(term); return NULL; } @@ -311,7 +311,7 @@ SR_PRIV int serial_restore_params(int fd, void *backup) /* Returns 0 upon success, -1 upon failure. */ if ((ret = tcsetattr(fd, TCSADRAIN, (struct termios *)backup)) < 0) { sr_err("FD %d: Error restoring serial parameters: %s.", - strerror(errno)); + fd, strerror(errno)); } return ret;