From 94e12e6cf511a149dd1861aedbf1f4c037abd382 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 22 Jun 2018 22:28:19 -0500 Subject: [PATCH] change print_binary_chars to log_debug --- common.cpp | 9 +++++++++ common.h | 12 +++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/common.cpp b/common.cpp index c50d5d3..73fbe45 100644 --- a/common.cpp +++ b/common.cpp @@ -611,6 +611,15 @@ char * ip_port_t::to_s() +void print_binary_chars(const char * a,int len) +{ + for(int i=0;i",(int)b); + } + log_bare(log_debug,"\n"); +} diff --git a/common.h b/common.h index f6b52ae..9a63ed9 100644 --- a/common.h +++ b/common.h @@ -142,13 +142,7 @@ int hex_to_u32(const string & a,u32_t &output); int create_fifo(char * file); -inline void print_binary_chars(const char * a,int len) -{ - for(int i=0;i",(int)b); - } - printf("\n"); -} +void print_binary_chars(const char * a,int len); + + #endif /* COMMON_H_ */