Changeset 1118:5b4dddbfccb3 in freeDiameter
- Timestamp:
- May 14, 2013, 10:56:36 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_psm.c
r1113 r1118 577 577 char buf[128]; 578 578 snprintf(buf, sizeof(buf), "Received while peer state machine was in state %s.", STATE_STR(cur_state)); 579 LOG_E("%s",buf);580 579 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, peer, buf, fd_msg_pmdl_get(msg)); 581 580 fd_msg_free(msg); … … 594 593 char buf[256]; 595 594 snprintf(buf, sizeof(buf), "%s: An unexpected error occurred while parsing a link-local message", peer->p_hdr.info.pi_diamid); 596 LOG_E("%s",buf);597 595 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, peer, buf, fd_msg_pmdl_get(msg)); 598 596 fd_msg_free(msg); … … 607 605 /* Only if an error occurred & the message was not saved / dumped */ 608 606 snprintf(buf, sizeof(buf), "%s: error sending a message", peer->p_hdr.info.pi_diamid); 609 LOG_E("%s",buf);610 607 fd_hook_call(HOOK_MESSAGE_DROPPED, error, peer, buf, fd_msg_pmdl_get(error)); 611 608 CHECK_FCT_DO( fd_msg_free(error), goto psm_end); … … 615 612 /* We received an invalid answer, let's disconnect */ 616 613 snprintf(buf, sizeof(buf), "%s: Received invalid answer to Base protocol message, disconnecting...", peer->p_hdr.info.pi_diamid); 617 LOG_E("%s",buf);614 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, peer, buf, fd_msg_pmdl_get(msg)); 618 615 CHECK_FCT_DO( fd_msg_free(msg), goto psm_end); 619 616 CHECK_FCT_DO( fd_event_send(peer->p_events, FDEVP_CNX_ERROR, 0, NULL), goto psm_reset ); … … 668 665 char buf[256]; 669 666 snprintf(buf, sizeof(buf), "Received un-handled non-routable command from peer '%s'.", peer->p_hdr.info.pi_diamid); 670 LOG_E("%s",buf);671 667 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg)); 672 668 CHECK_FCT_DO( fd_msg_free(msg), /* continue */); … … 679 675 char buf[256]; 680 676 snprintf(buf, sizeof(buf), "Internal error ('%s'): unhandled message.", peer->p_hdr.info.pi_diamid); 681 LOG_E("%s",buf);682 677 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg)); 683 678 fd_msg_free(msg);
Note: See TracChangeset
for help on using the changeset viewer.