This patch enables ntpclient's debug message option to be configurable
in .config. You can set debug message option using the following config
variable.
- CONFIG_NETUTILS_NTPCLIENT_DEBUG
Change-Id: Idff252265478b6006fe1995ac33e094c097b03e1
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
default 18
depends on !DISABLE_SIGNALS
+config NETUTILS_NTPCLIENT_DEBUG
+ bool "NTP client debug message option"
+ default n
+ ---help---
+ Enable NTP client debug message
+
endif # NETUTILS_NTPCLIENT
#define NTP2UNIX_TRANLSLATION 2208988800u
#define NTP_VERSION 3
-#define DEBUG_OPTION 0
+#ifndef CONFIG_NETUTILS_NTPCLIENT_DEBUG
+#define CONFIG_NETUTILS_NTPCLIENT_DEBUG 0
+#endif
/****************************************************************************
* Private Types
static struct ntpc_daemon_s g_ntpc_daemon;
static struct ntpc_server_info_s g_ntps;
-static int g_debug = DEBUG_OPTION;
+static int g_debug = CONFIG_NETUTILS_NTPCLIENT_DEBUG;
/****************************************************************************
* Private Functions Prototype