summaryrefslogtreecommitdiff
path: root/omapip/support.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-09-29 22:42:09 +0000
committerTed Lemon <source@isc.org>2000-09-29 22:42:09 +0000
commit6bbd4fd6ba83be5e41b2c91fcd6cbabd39ee4e56 (patch)
tree4fd1eea44346e50b58080f9206832fd6544c65aa /omapip/support.c
parent29bd733a58073b27999d19ed4c577db23d235616 (diff)
downloadisc-dhcp-6bbd4fd6ba83be5e41b2c91fcd6cbabd39ee4e56.tar.gz
Wrap some new debugging code with #ifdef DEBUG.
Diffstat (limited to 'omapip/support.c')
-rw-r--r--omapip/support.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/omapip/support.c b/omapip/support.c
index 9f92ad18..05d82f02 100644
--- a/omapip/support.c
+++ b/omapip/support.c
@@ -292,6 +292,7 @@ isc_result_t omapi_set_value (omapi_object_t *h,
omapi_object_t *outer;
isc_result_t status;
+#if defined (DEBUG)
if (!value) {
log_info ("omapi_set_value (%.*s, NULL)",
(int)name -> len, name -> value);
@@ -317,6 +318,7 @@ isc_result_t omapi_set_value (omapi_object_t *h,
: "(unknown object)")
: "(unknown object)");
}
+#endif
for (outer = h; outer -> outer; outer = outer -> outer)
;
@@ -325,7 +327,9 @@ isc_result_t omapi_set_value (omapi_object_t *h,
id, name, value);
else
status = ISC_R_NOTFOUND;
+#if defined (DEBUG)
log_info (" ==> %s", isc_result_totext (status));
+#endif
return status;
}