summaryrefslogtreecommitdiff
path: root/libdhcp
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 21:20:13 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 22:05:53 -0700
commit24cd8ca4ee1ea08526eb82e6c122870c86da5603 (patch)
tree25e467df0236b8a514bbc328299f8500277f9512 /libdhcp
parent1cc68fb6f72ada5446a9914cc3bf97db9259a880 (diff)
Add libmisc/log.h to remove stdio.h
Diffstat (limited to 'libdhcp')
-rw-r--r--libdhcp/dhcp_client.c10
1 files changed, 3 insertions, 7 deletions
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 <libmisc/vcall.h>
#include <libhw/generic/alarmclock.h>
+#define LOG_NAME DHCP
+#include <libmisc/log.h>
+
#include <libdhcp/client.h>
#include "dhcp_common.h"
@@ -110,13 +113,6 @@
/* Implementation *************************************************************/
-#if CONFIG_DHCP_DEBUG
- #include <stdio.h>
- #define debugf(fmt, ...) printf(fmt "\n" __VA_OPT__(,) __VA_ARGS__)
-#else
- #define debugf(fmt, ...) ((void)0)
-#endif
-
enum requirement {
MUST,
MUST_NOT,