X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=ubus.c;h=e87543aeef73a09ff2403a4c8952ae40d9b06e83;hp=e6f9922fcacd7973bad5f44252f4f6a2052d25a1;hb=8158e9052afbf2ee47de645167b90b6e7fc7d86d;hpb=6390afe7a3cf1663979078711febb2be21fb4cf2 diff --git a/ubus.c b/ubus.c index e6f9922..e87543a 100644 --- a/ubus.c +++ b/ubus.c @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2013 Felix Fietkau + * Copyright (C) 2013 John Crispin + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1 + * as published by the Free Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + #include #include #include @@ -42,7 +56,7 @@ static void procd_restart_ubus(void) return; } - LOG("Launched new ubus instance, pid=%d\n", (int) ubus_proc.pid); + DEBUG(1, "Launched new ubus instance, pid=%d\n", (int) ubus_proc.pid); uloop_process_add(&ubus_proc); } @@ -77,7 +91,7 @@ static void procd_ubus_connection_lost(struct ubus_context *old_ctx) procd_ubus_try_connect(); } - LOG("Connected to ubus, id=%08x\n", ctx->local_id); + DEBUG(1, "Connected to ubus, id=%08x\n", ctx->local_id); ubus_add_uloop(ctx); }