From 841fa5e7a2f6df0fb1532aa9bcac194f745dc766 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 20 Jun 2013 16:57:02 +0900 Subject: Reduce the verbose logging Change-Id: I6847ca2ea2450d2910564fba7b5524114101224f --- packaging/liblivebox.spec | 2 +- src/livebox.c | 28 ++++++---------------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/packaging/liblivebox.spec b/packaging/liblivebox.spec index 825a137..a0a2b31 100644 --- a/packaging/liblivebox.spec +++ b/packaging/liblivebox.spec @@ -1,6 +1,6 @@ Name: liblivebox Summary: Library for the development of a livebox -Version: 0.3.2 +Version: 0.3.3 Release: 1 Group: HomeTF/Livebox License: Flora License diff --git a/src/livebox.c b/src/livebox.c index f6abd2e..9d207b6 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -143,44 +143,28 @@ PUBLIC int livebox_desc_close(struct livebox_desc *handle) if (!handle) return LB_STATUS_ERROR_INVALID; - DbgPrint("Close and flush\n"); dlist_foreach_safe(handle->block_list, l, n, block) { handle->block_list = dlist_remove(handle->block_list, l); - DbgPrint("{\n"); fprintf(handle->fp, "{\n"); - if (block->type) { + if (block->type) fprintf(handle->fp, "type=%s\n", block->type); - DbgPrint("type=%s\n", block->type); - } - if (block->part) { + if (block->part) fprintf(handle->fp, "part=%s\n", block->part); - DbgPrint("part=%s\n", block->part); - } - if (block->data) { + if (block->data) fprintf(handle->fp, "data=%s\n", block->data); - DbgPrint("data=%s\n", block->data); - } - if (block->option) { + if (block->option) fprintf(handle->fp, "option=%s\n", block->option); - DbgPrint("option=%s\n", block->option); - } - if (block->id) { + if (block->id) fprintf(handle->fp, "id=%s\n", block->id); - DbgPrint("id=%s\n", block->id); - } - if (block->target_id) { + if (block->target_id) fprintf(handle->fp, "target=%s\n", block->target_id); - DbgPrint("target=%s\n", block->target_id); - } - fprintf(handle->fp, "}\n"); - DbgPrint("}\n"); free(block->type); free(block->part); -- cgit v1.2.3