[PATCH evemu 2/2] evemu-record.c: Add missing newling to error message

Martin Kepplinger martink at posteo.de
Fri Sep 15 09:02:21 UTC 2017


In case the output file cannot be opened, the message is the only thing
that gets printed and really should contain a newline in order to have
a sane commandline prompt, for example.

Signed-off-by: Martin Kepplinger <martink at posteo.de>
---
 tools/evemu-record.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/evemu-record.c b/tools/evemu-record.c
index 54c7f92..998f63d 100644
--- a/tools/evemu-record.c
+++ b/tools/evemu-record.c
@@ -324,7 +324,7 @@ int main(int argc, char *argv[])
 		if (prefix) {
 			output = fopen(argv[optind++], "w");
 			if (!output) {
-				fprintf(stderr, "error: could not open output file (%m)");
+				fprintf(stderr, "error: could not open output file (%m)\n");
 				goto out;
 			}
 		}
-- 
2.11.0



More information about the Input-tools mailing list