diff --git a/lib/dbg/struct_hist.h b/lib/dbg/struct_hist.h index 109893c636b..2111889bbc5 100644 --- a/lib/dbg/struct_hist.h +++ b/lib/dbg/struct_hist.h @@ -49,7 +49,7 @@ * remain available inside the global history list for a while */ -#define MAX_SHLOG_SIZE 80 /* longer log lines will get truncated */ +#define MAX_SHLOG_SIZE 128 /* longer log lines will get truncated */ /** * To be freely extended by any piece of OpenSIPS code which makes use of diff --git a/modules/dialog/dlg_hash.h b/modules/dialog/dlg_hash.h index eff88763bf2..7b6c77ed8b6 100644 --- a/modules/dialog/dlg_hash.h +++ b/modules/dialog/dlg_hash.h @@ -302,11 +302,11 @@ void destroy_dlg(struct dlg_cell *dlg); #ifdef DBG_DIALOG #define DBG_REF(dlg, cnt) \ - sh_log((dlg)->hist, DLG_REF, "h=%d, ref %d with +%d", \ - (dlg)->h_entry, (dlg)->ref, (cnt)); + sh_log((dlg)->hist, DLG_REF, "h=%d, state=%d, flags=0x%x, ref %d with +%d", \ + (dlg)->h_entry, (dlg)->state, (dlg)->flags, (dlg)->ref, (cnt)); #define DBG_UNREF(dlg, cnt) \ - sh_log((dlg)->hist, DLG_UNREF, "h=%d, unref %d with -%d", \ - (dlg)->h_entry, (dlg)->ref, (cnt)); + sh_log((dlg)->hist, DLG_UNREF, "h=%d, state=%d, flags=0x%x, unref %d with -%d", \ + (dlg)->h_entry, (dlg)->state, (dlg)->flags, (dlg)->ref, (cnt)); #define DBG_FLUSH(dlg) sh_flush((dlg)->hist) #else #define DBG_REF(dlg, cnt)