From 5f78ab4b8149c28d68103911a7fc22a9ee79d811 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Thu, 20 Sep 2018 11:17:14 +0200 Subject: executor: move debug_dump_data() into common_linux.h Compiling the executor on OpenBSD currently fails: executor/executor.cc:1316:6: error: unused function 'debug_dump_data' --- executor/executor.cc | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 55a77f423..a72c48add 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -70,7 +70,6 @@ static NORETURN PRINTF void error(const char* msg, ...); static NORETURN PRINTF void exitf(const char* msg, ...); // Print debug output, does not add \n at the end of msg as opposed to the previous functions. static PRINTF void debug(const char* msg, ...); -static void debug_dump_data(const char* data, int length); static NORETURN void doexit(int status); static void receive_execute(); @@ -1312,15 +1311,3 @@ void debug(const char* msg, ...) va_end(args); fflush(stderr); } - -void debug_dump_data(const char* data, int length) -{ - if (!flag_debug) - return; - for (int i = 0; i < length; i++) { - debug("%02x ", data[i] & 0xff); - if (i % 16 == 15) - debug("\n"); - } - debug("\n"); -} -- cgit mrf-deployment