Changeset 2993 for pjproject/trunk
- Timestamp:
- Nov 9, 2009 4:32:33 AM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_qos_common.c
r2967 r2993 99 99 const char *sock_name) 100 100 { 101 char fmt[60];102 101 pj_status_t qos_type_rc = PJ_SUCCESS, 103 102 qos_params_rc = PJ_SUCCESS; … … 112 111 113 112 if (qos_type_rc != PJ_SUCCESS) { 114 pj_ansi_snprintf(fmt, sizeof(fmt), 115 "Error setting QoS type %d to %s", 116 qos_type, sock_name); 117 pj_perror(log_level, log_sender, qos_type_rc, fmt, 0); 113 pj_perror(log_level, log_sender, qos_type_rc, 114 "Error setting QoS type %d to %s", 115 qos_type, sock_name); 118 116 } 119 117 } … … 122 120 qos_params_rc = pj_sock_set_qos_params(sock, qos_params); 123 121 if (qos_params_rc != PJ_SUCCESS) { 124 pj_ansi_snprintf(fmt, sizeof(fmt), 125 "Error setting QoS params (flags=%d) to %s", 126 qos_params->flags, sock_name); 127 pj_perror(log_level, log_sender, qos_params_rc, fmt, 0); 122 pj_perror(log_level, log_sender, qos_params_rc, 123 "Error setting QoS params (flags=%d) to %s", 124 qos_params->flags, sock_name); 128 125 if (qos_type_rc != PJ_SUCCESS) 129 126 return qos_params_rc; -
pjproject/trunk/pjnath/src/pjnath/stun_sock.c
r2966 r2993 440 440 pj_status_t status) 441 441 { 442 char errmsg[PJ_ERR_MSG_SIZE];443 442 pj_bool_t ret; 444 443 445 pj_strerror(status, errmsg, sizeof(errmsg));446 PJ_LOG(4,(stun_sock->obj_name, "Session failed because %s failed: %s",447 pj_stun_sock_op_name(op), errmsg));444 PJ_PERROR(4,(stun_sock->obj_name, status, 445 "Session failed because %s failed", 446 pj_stun_sock_op_name(op))); 448 447 449 448 ret = (*stun_sock->cb.on_status)(stun_sock, op, status); … … 769 768 /* Log socket error */ 770 769 if (status != PJ_SUCCESS) { 771 pj_perror(2, stun_sock->obj_name, status, "recvfrom() error", 0);770 PJ_PERROR(2,(stun_sock->obj_name, status, "recvfrom() error")); 772 771 return PJ_TRUE; 773 772 }
Note: See TracChangeset
for help on using the changeset viewer.