aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-09-28 10:04:56 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-09-28 12:21:40 +0200
commiteea5f51ff6a3382debe76e65a7eb194baf2930bd (patch)
tree3ad58e410e1c0a8e4bf228aebe6bf5f7fb23b0ca /executor/common_bsd.h
parent38c78d5c07a1296817ae0ac9b895ee62cf691ce2 (diff)
executor: check for \n in fail/exitf messages
Diffstat (limited to 'executor/common_bsd.h')
-rw-r--r--executor/common_bsd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 01eaa522c..a98d3e4cb 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -192,7 +192,7 @@ static void initialize_tun(int tun_id)
#endif // SYZ_EXECUTOR
if (tun_id < 0 || tun_id >= MAX_TUN) {
- fail("tun_id out of range %d\n", tun_id);
+ fail("tun_id out of range %d", tun_id);
}
char tun_device[sizeof(TUN_DEVICE)];
@@ -219,7 +219,7 @@ static void initialize_tun(int tun_id)
#endif
if (tunfd == -1) {
#if SYZ_EXECUTOR
- fail("tun: can't open %s\n", tun_device);
+ fail("tun: can't open %s", tun_device);
#else
printf("tun: can't open %s: errno=%d\n", tun_device, errno);
return;