remove unnecessary debug stuff
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 01:09:37 +0000 (02:09 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 01:09:37 +0000 (02:09 +0100)
libubus.c

index 93f8459..34250b4 100644 (file)
--- a/libubus.c
+++ b/libubus.c
 #include "libubus.h"
 #include "ubusmsg.h"
 
-#define DEBUG 1
-
-#ifdef DEBUG
-#define DPRINTF(_format, ...) fprintf(stderr, "ubus: " _format, ## __VA_ARGS__)
-#else
-#define DPRINTF(...) do {} while(0)
-#endif
-
 #define STATIC_IOV(_var) { .iov_base = (char *) &(_var), .iov_len = sizeof(_var) }
 
 const char *__ubus_strerror[__UBUS_STATUS_LAST] = {
@@ -355,9 +347,6 @@ static void ubus_process_msg(struct ubus_context *ctx, struct ubus_msghdr *hdr)
        case UBUS_MSG_INVOKE:
                ubus_process_invoke(ctx, hdr);
                break;
-       default:
-               DPRINTF("unknown message type: %d\n", hdr->type);
-               break;
        }
 }