From 24cd8ca4ee1ea08526eb82e6c122870c86da5603 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 19 Nov 2024 21:20:13 -0700 Subject: Add libmisc/log.h to remove stdio.h --- libdhcp/dhcp_client.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libdhcp/dhcp_client.c') diff --git a/libdhcp/dhcp_client.c b/libdhcp/dhcp_client.c index a7b1d49..34ce8ac 100644 --- a/libdhcp/dhcp_client.c +++ b/libdhcp/dhcp_client.c @@ -90,6 +90,9 @@ #include #include +#define LOG_NAME DHCP +#include + #include #include "dhcp_common.h" @@ -110,13 +113,6 @@ /* Implementation *************************************************************/ -#if CONFIG_DHCP_DEBUG - #include - #define debugf(fmt, ...) printf(fmt "\n" __VA_OPT__(,) __VA_ARGS__) -#else - #define debugf(fmt, ...) ((void)0) -#endif - enum requirement { MUST, MUST_NOT, -- cgit v1.2.3-2-g168b