Changeset 1119:79dd22145f52 in freeDiameter for extensions/dbg_rt
- Timestamp:
- May 14, 2013, 12:04:20 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_rt/dbg_rt.c
r974 r1119 46 46 static int dbgrt_fwd_cb(void * cbdata, struct msg ** msg) 47 47 { 48 char * buf = NULL; size_t buflen; 48 49 TRACE_ENTRY("%p %p", cbdata, msg); 49 50 50 fd_log_debug("[dbg_rt] FWD routing message: %p", msg ? *msg : NULL); 51 if (msg) 52 fd_msg_dump_walk(INFO, *msg); 53 51 LOG_D("[dbg_rt] FWD routing message: %p", msg ? *msg : NULL); 52 if (msg) { 53 CHECK_MALLOC( fd_msg_dump_treeview(&buf, &buflen, NULL, *msg, NULL, 0, 1) ); 54 LOG_D("%s", buf); 55 } 56 free(buf); 54 57 return 0; 55 58 } … … 59 62 { 60 63 struct fd_list * li; 64 char * buf = NULL; size_t buflen; 61 65 62 66 TRACE_ENTRY("%p %p %p", cbdata, msg, candidates); 63 67 64 fd_log_debug("[dbg_rt] OUT routing message: %p", msg); 65 fd_msg_dump_walk(INFO, msg); 66 fd_log_debug("[dbg_rt] Current list of candidates (%p): (score - id)", msg); 68 LOG_D("[dbg_rt] OUT routing message: %p", msg); 69 CHECK_MALLOC( fd_msg_dump_treeview(&buf, &buflen, NULL, msg, NULL, 0, 1) ); 70 LOG_D("%s", buf); 71 LOG_D("[dbg_rt] Current list of candidates (%p): (score - id)", msg); 67 72 68 73 for (li = candidates->next; li != candidates; li = li->next) { 69 74 struct rtd_candidate *c = (struct rtd_candidate *) li; 70 fd_log_debug("[dbg_rt] %d -\t%s", c->score, c->diamid);75 LOG_D("[dbg_rt] %d -\t%s", c->score, c->diamid); 71 76 } 72 77
Note: See TracChangeset
for help on using the changeset viewer.