Changeset 5984 for pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
- Timestamp:
- May 9, 2019 8:18:18 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
r5723 r5984 513 513 on_error: 514 514 if (status != PJ_SUCCESS) { 515 char errmsg[PJ_ERR_MSG_SIZE]; 516 PJ_LOG(4,(THIS_FILE, "Failed to resolve '%.*s'. Err=%d (%s)", 517 (int)target->addr.host.slen, 518 target->addr.host.ptr, 519 status, 520 pj_strerror(status,errmsg,sizeof(errmsg)).ptr)); 515 PJ_PERROR(4,(THIS_FILE, status, 516 "Failed to resolve '%.*s'", 517 (int)target->addr.host.slen, 518 target->addr.host.ptr)); 521 519 (*cb)(status, token, NULL); 522 520 return; … … 568 566 569 567 if (status != PJ_SUCCESS) { 570 char errmsg[PJ_ERR_MSG_SIZE]; 571 572 /* Log error */ 573 pj_strerror(status, errmsg, sizeof(errmsg)); 574 PJ_LOG(4,(query->objname, "DNS A record resolution failed: %s", 575 errmsg)); 568 PJ_PERROR(4,(query->objname, status, 569 "DNS A record resolution failed")); 576 570 577 571 query->last_error = status; … … 631 625 632 626 if (status != PJ_SUCCESS) { 633 char errmsg[PJ_ERR_MSG_SIZE]; 634 635 /* Log error */ 636 pj_strerror(status, errmsg, sizeof(errmsg)); 637 PJ_LOG(4,(query->objname, "DNS AAAA record resolution failed: %s", 638 errmsg)); 627 PJ_PERROR(4,(query->objname, status, 628 "DNS AAAA record resolution failed")); 639 629 640 630 query->last_error = status; … … 661 651 662 652 if (status != PJ_SUCCESS) { 663 char errmsg[PJ_ERR_MSG_SIZE]; 664 665 /* Log error */ 666 pj_strerror(status, errmsg, sizeof(errmsg)); 667 PJ_LOG(4,(query->objname, "DNS A/AAAA record resolution failed: %s", 668 errmsg)); 653 PJ_PERROR(4,(query->objname, status, 654 "DNS A/AAAA record resolution failed")); 669 655 670 656 /* Call the callback */
Note: See TracChangeset
for help on using the changeset viewer.