From c4e08ec3777b78b6f788eec6737524cc5e856107 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Sun, 31 Aug 2025 16:18:35 +0200 Subject: rename output.h to trace_macros.h --- include/hex_conversion.h | 2 +- include/output.h | 23 ----------------------- include/trace_macros.h | 23 +++++++++++++++++++++++ 3 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 include/output.h create mode 100644 include/trace_macros.h (limited to 'include') diff --git a/include/hex_conversion.h b/include/hex_conversion.h index 483cf26..ddeb131 100644 --- a/include/hex_conversion.h +++ b/include/hex_conversion.h @@ -12,7 +12,7 @@ #include #ifdef DEBUGBUILD -#include "output.h" +#include "trace_macros.h" #endif #define ishex_macro(c) ((c>='0' && c <= '9') || (c>='A' && c <= 'F') || (c>='a' && c <= 'f')) diff --git a/include/output.h b/include/output.h deleted file mode 100644 index 366e3c4..0000000 --- a/include/output.h +++ /dev/null @@ -1,23 +0,0 @@ -/* SPDX-License-Identifier: Apache-2.0 */ - -/* Copyright 2025 Thorsten Töpper - * - * vim:ts=4:sw=4:expandtab - */ -#ifndef OUTPUT_H -#define OUTPUT_H - -#include - -#ifndef LOGERR -#define LOGERR(...) {fprintf(stderr, "[%s:%d] %s: ", __FILE__, __LINE__, __func__); fprintf(stderr, __VA_ARGS__);} -#endif - -#ifdef DEBUGBUILD -#define DBGTRC(...) LOGERR(__VA_ARGS__) -#else -#define DBGTRC(...) -#endif - -#endif - diff --git a/include/trace_macros.h b/include/trace_macros.h new file mode 100644 index 0000000..9fd6a73 --- /dev/null +++ b/include/trace_macros.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +/* Copyright 2025 Thorsten Töpper + * + * vim:ts=4:sw=4:expandtab + */ +#ifndef TRACE_MACROS_H +#define TRACE_MACROS_H + +#include + +#ifndef LOGERR +#define LOGERR(...) {fprintf(stderr, "[%s:%d] %s: ", __FILE__, __LINE__, __func__); fprintf(stderr, __VA_ARGS__);} +#endif + +#ifdef DEBUGBUILD +#define DBGTRC(...) LOGERR(__VA_ARGS__) +#else +#define DBGTRC(...) +#endif + +#endif + -- cgit v1.2.3-70-g09d2