]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Wrap some new debugging code with #ifdef DEBUG.
authorTed Lemon <source@isc.org>
Fri, 29 Sep 2000 22:42:09 +0000 (22:42 +0000)
committerTed Lemon <source@isc.org>
Fri, 29 Sep 2000 22:42:09 +0000 (22:42 +0000)
omapip/support.c

index 9f92ad1831c26f877c0d4ced4effaa3f5243951c..05d82f026bcb14b585cb7f0aeb8429463b3a833d 100644 (file)
@@ -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;
 }