Fixed Debug -D msg: dont show length in detailed debug
This commit is contained in:
parent
4c57edfc57
commit
be5a7c418a
5 changed files with 25 additions and 16 deletions
|
|
@ -2203,7 +2203,7 @@ netconf_output(int s,
|
|||
char *buf = cbuf_get(cb);
|
||||
int len = cbuf_len(cb);
|
||||
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Send ext: %s", cbuf_get(cb));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Send ext len: %lu", cbuf_len(cb));
|
||||
|
|
|
|||
|
|
@ -354,13 +354,13 @@ clixon_msg_send(int s,
|
|||
int retval = -1;
|
||||
|
||||
if (descr){
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Send [%s] %s", descr, cbuf_get(cb));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Send [%s] len: %lu", descr, cbuf_len(cb));
|
||||
}
|
||||
else{
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Send %s", cbuf_get(cb));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Send len: %lu", cbuf_len(cb));
|
||||
|
|
@ -437,13 +437,13 @@ clixon_msg_rcv10(int s,
|
|||
}
|
||||
else {
|
||||
if (descr){
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Recv [%s]: %s", descr, cbuf_get(cb));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Recv [%s] len: %lu", descr, cbuf_len(cb));
|
||||
}
|
||||
else{
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Recv: %s", cbuf_get(cb));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Recv len: %lu", cbuf_len(cb));
|
||||
|
|
@ -620,13 +620,13 @@ clixon_msg_rcv11(int s,
|
|||
}
|
||||
else {
|
||||
if (descr){
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Recv [%s]: %s", descr, cbuf_get(cbmsg));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Recv [%s] len: %lu", descr, cbuf_len(cbmsg));
|
||||
}
|
||||
else{
|
||||
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
|
||||
if (clixon_debug_detail())
|
||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Recv: %s", cbuf_get(cbmsg));
|
||||
else
|
||||
clixon_debug(CLIXON_DBG_MSG, "Recv len: %lu", cbuf_len(cbmsg));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue