From 4ab6155577acb5967a7905e6873de7a46e85678c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 7 Feb 2011 02:09:37 +0100 Subject: [PATCH] remove unnecessary debug stuff --- libubus.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libubus.c b/libubus.c index 93f8459..34250b4 100644 --- a/libubus.c +++ b/libubus.c @@ -10,14 +10,6 @@ #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; } } -- 2.25.1