mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
change print_binary_chars to log_debug
This commit is contained in:
parent
61512a15ec
commit
94e12e6cf5
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
12
common.h
12
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<len;i++)
|
||||
{
|
||||
unsigned char b=a[i];
|
||||
printf("<%x>",(int)b);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
void print_binary_chars(const char * a,int len);
|
||||
|
||||
|
||||
#endif /* COMMON_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user