2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

Wrap some new debugging code with #ifdef DEBUG.

This commit is contained in:
Ted Lemon 2000-09-29 22:42:09 +00:00
parent 29bd733a58
commit 6bbd4fd6ba

View File

@ -292,6 +292,7 @@ isc_result_t omapi_set_value (omapi_object_t *h,
omapi_object_t *outer; omapi_object_t *outer;
isc_result_t status; isc_result_t status;
#if defined (DEBUG)
if (!value) { if (!value) {
log_info ("omapi_set_value (%.*s, NULL)", log_info ("omapi_set_value (%.*s, NULL)",
(int)name -> len, name -> value); (int)name -> len, name -> value);
@ -317,6 +318,7 @@ isc_result_t omapi_set_value (omapi_object_t *h,
: "(unknown object)") : "(unknown object)")
: "(unknown object)"); : "(unknown object)");
} }
#endif
for (outer = h; outer -> outer; outer = outer -> outer) 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); id, name, value);
else else
status = ISC_R_NOTFOUND; status = ISC_R_NOTFOUND;
#if defined (DEBUG)
log_info (" ==> %s", isc_result_totext (status)); log_info (" ==> %s", isc_result_totext (status));
#endif
return status; return status;
} }