From 9aa6b27a8362f3a4a329c6c7293a63306827c678 Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Sat, 10 Oct 2015 13:17:10 +0200
Subject: [PATCH] Add a space in an error message.

While there, keep error messages in a single line even if they are
longer than 80 characters.
---
 gtests/net/packetdrill/run_system_call.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c
index 9480ae51..f08ad107 100644
--- a/gtests/net/packetdrill/run_system_call.c
+++ b/gtests/net/packetdrill/run_system_call.c
@@ -672,8 +672,7 @@ static int end_syscall(struct state *state, struct syscall_spec *syscall,
 	if (mode == CHECK_NON_NEGATIVE) {
 		if (actual < 0) {
 			asprintf(error,
-				 "Expected non-negative result but got %d"
-				 "with errno %d (%s)",
+				 "Expected non-negative result but got %d with errno %d (%s)",
 				 actual, actual_errno, strerror(actual_errno));
 			return STATUS_ERR;
 		}
@@ -681,8 +680,7 @@ static int end_syscall(struct state *state, struct syscall_spec *syscall,
 		if (actual != expected) {
 			if (actual < 0)
 				asprintf(error,
-					 "Expected result %d but got %d "
-					 "with errno %d (%s)",
+					 "Expected result %d but got %d with errno %d (%s)",
 					 expected,
 					 actual,
 					 actual_errno, strerror(actual_errno));
@@ -695,8 +693,7 @@ static int end_syscall(struct state *state, struct syscall_spec *syscall,
 	} else if (mode == CHECK_ALLOW_MAPPING) {
 		if ((expected >= 0)  && (actual < 0)) {
 			asprintf(error,
-				 "Expected non-negative result but got %d "
-				 "with errno %d (%s)",
+				 "Expected non-negative result but got %d with errno %d (%s)",
 				 actual, actual_errno, strerror(actual_errno));
 			return STATUS_ERR;
 		} else if ((expected < 0) && (actual != expected)) {
-- 
GitLab