From aa93478559fadca9c8f9101129ac82b4ac660918 Mon Sep 17 00:00:00 2001 From: Hyihong Chae Date: Fri, 1 Apr 2016 13:48:37 +0900 Subject: [PATCH] apply coding convention Change-Id: I84567637a1a18aa88340b8b85cc6d1eb7bee4c73 Signed-off-by: HyiHong Chae --- include/smartcard_debug.h | 46 +++++++++++++---------------------- packaging/capi-network-smartcard.spec | 2 +- 2 files changed, 18 insertions(+), 30 deletions(-) mode change 100644 => 100755 include/smartcard_debug.h diff --git a/include/smartcard_debug.h b/include/smartcard_debug.h old mode 100644 new mode 100755 index 1415da1..ed0fad1 --- a/include/smartcard_debug.h +++ b/include/smartcard_debug.h @@ -28,61 +28,49 @@ #define COLOR_END "\033[0;m" #define _ERR(fmt, ...) \ - do \ - { \ + do { \ LOGE(COLOR_RED fmt COLOR_END, ##__VA_ARGS__); \ - } \ - while (0) + } while (0) #define _INFO(fmt, ...) \ - do \ - { \ + do { \ LOGI(COLOR_GREEN fmt COLOR_END, ##__VA_ARGS__); \ - } \ - while (0) + } while (0) #define _WARN(fmt, ...) \ - do \ - { \ + do { \ LOGI(COLOR_BROWN fmt COLOR_END, ##__VA_ARGS__); \ - } \ - while (0) + } while (0) #define _DBG(fmt, ...) \ - do \ - { \ + do { \ LOGD(fmt, ##__VA_ARGS__); \ - } \ - while (0) + } while (0) #define _BEGIN() \ - do \ - { \ + do { \ LOGD(COLOR_BLUE "BEGIN >>>>" COLOR_END); \ - } \ - while (0) + } while (0) #define _END() \ - do \ - { \ + do { \ LOGD(COLOR_BLUE "END <<<<" COLOR_END); \ - } \ - while (0) + } while (0) #define cond_expr_ret(expr, val) \ - do {\ + do { \ if (expr) { \ _ERR("[precond fail] expr : %s, ret : %d\n", #expr, val); \ return (val); \ } \ - } while(0) + } while (0) #define cond_ret(val) \ - do {\ - if(val) { \ + do { \ + if (val) { \ _ERR("[precond fail] ret : %d\n", val); \ return (val); \ } \ - } while(0) + } while (0) #endif diff --git a/packaging/capi-network-smartcard.spec b/packaging/capi-network-smartcard.spec index 3da980e..f4119eb 100755 --- a/packaging/capi-network-smartcard.spec +++ b/packaging/capi-network-smartcard.spec @@ -1,6 +1,6 @@ Name: capi-network-smartcard Summary: A Smartcard library in Native API -Version: 0.0.5 +Version: 0.0.6 Release: 1 Group: Network & Connectivity/Smartcard License: Apache-2.0 -- 2.7.4