Blob Blame History Raw
From 787f280726afb56afab872a53a414cf0e32328dd Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon, 17 Mar 2014 08:58:46 +1000
Subject: [PATCH 06/14] tools: use perror instead of fprintf

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
 tools/isdv4-serial-debugger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/isdv4-serial-debugger.c b/tools/isdv4-serial-debugger.c
index 72b9b4f..778b500 100644
--- a/tools/isdv4-serial-debugger.c
+++ b/tools/isdv4-serial-debugger.c
@@ -81,7 +81,7 @@ int open_device(const char *path)
 
 	if (ioctl(fd, TIOCGSERIAL, &ser) == -1)
 	{
-		fprintf(stderr, "Not a serial device?");
+		perror("Not a serial device?");
 		close(fd);
 		fd = -1;
 		goto out;
-- 
1.8.5.3