From 9572ff9413a01d536e615885b23fecca657355df Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 19 Oct 2016 12:29:41 +0200 Subject: [PATCH] base: remove original PDBG from base/printf.h This macro is superseded by base/debug.h. Issue #2125 --- repos/base/include/base/printf.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/repos/base/include/base/printf.h b/repos/base/include/base/printf.h index 27f7acac6b..4fa8b45dfe 100644 --- a/repos/base/include/base/printf.h +++ b/repos/base/include/base/printf.h @@ -55,34 +55,11 @@ namespace Genode { * Suppress debug messages in release version */ #ifdef GENODE_RELEASE -#define DO_PDBG false #define DO_PWRN false #else -#define DO_PDBG true #define DO_PWRN true #endif /* GENODE_RELEASE */ -/** - * Print debug message with function name - * - * We're using heavy CPP wizardry here to prevent compiler errors after macro - * expansion. Each macro works as follows: - * - * - Support one format string plus zero or more arguments. - * - Put all static strings (including the format string) in the first argument - * of the call to printf() and let the compiler merge them. - * - Append the function name (magic static string variable) as first argument. - * - (Optionally) append the arguments to the macro with ", ##__VA_ARGS__". CPP - * only appends the comma and arguments if __VA__ARGS__ is not empty, - * otherwise nothing (not even the comma) is appended. - */ -#define PDBG(fmt, ...) \ - do { \ - if (DO_PDBG) \ - Genode::printf("%s: " ESC_DBG fmt ESC_END "\n", \ - __PRETTY_FUNCTION__, ##__VA_ARGS__ ); \ - } while (0) - /** * Print log message */