change print_binary_chars to log_debug

This commit is contained in:
wangyu- 2018-06-22 22:28:19 -05:00
parent 61512a15ec
commit 94e12e6cf5
2 changed files with 12 additions and 9 deletions

View File

@ -611,6 +611,15 @@ char * ip_port_t::to_s()
void print_binary_chars(const char * a,int len)
{
for(int i=0;i<len;i++)
{
unsigned char b=a[i];
log_bare(log_debug,"<%02x>",(int)b);
}
log_bare(log_debug,"\n");
}

View File

@ -142,13 +142,7 @@ int hex_to_u32(const string & a,u32_t &output);
int create_fifo(char * file); int create_fifo(char * file);
inline void print_binary_chars(const char * a,int len) void print_binary_chars(const char * a,int len);
{
for(int i=0;i<len;i++)
{
unsigned char b=a[i];
printf("<%x>",(int)b);
}
printf("\n");
}
#endif /* COMMON_H_ */ #endif /* COMMON_H_ */