- Timestamp:
- Sep 27, 2006, 11:23:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/upnp.c
r930 r938 583 583 *first = ii; 584 584 585 tr_inf( "new upnp device %s", ii->host ); 585 tr_inf( "new upnp device %s, port %i, path %s", 586 ii->host, ii->port, ii->root ); 586 587 } 587 588 … … 689 690 { 690 691 case UPNPDEV_STATE_ROOT: 691 if( TR_HTTP_STATUS_OK( code ) && 692 !parseRoot( body, len, &dev->soap, &dev->scpd ) ) 692 if( !TR_HTTP_STATUS_OK( code ) ) 693 { 694 tr_dbg( "upnp device %s: fetch root failed with http code %i", 695 dev->host, code ); 696 } 697 else if( parseRoot( body, len, &dev->soap, &dev->scpd ) ) 698 { 699 tr_dbg( "upnp device %s: parse root failed", dev->host ); 700 } 701 else 693 702 { 694 703 tr_dbg( "upnp device %s: parsed root, state root -> scpd", … … 699 708 700 709 case UPNPDEV_STATE_SCPD: 701 if( TR_HTTP_STATUS_OK( code ) && 702 !parseScpd( body, len, &dev->getcmd, 703 &dev->addcmd, &dev->delcmd ) ) 710 if( !TR_HTTP_STATUS_OK( code ) ) 711 { 712 tr_dbg( "upnp device %s: fetch scpd failed with http code %i", 713 dev->host, code ); 714 } 715 else if( parseScpd( body, len, &dev->getcmd, 716 &dev->addcmd, &dev->delcmd ) ) 717 { 718 tr_dbg( "upnp device %s: parse scpd failed", dev->host ); 719 } 720 else 704 721 { 705 722 tr_dbg( "upnp device %s: parsed scpd, state scpd -> ready", … … 724 741 dev->host ); 725 742 dev->state = UPNPDEV_STATE_GET; 743 } 744 else 745 { 746 tr_dbg( "upnp device %s: add failed with http code %i", 747 dev->host, code ); 726 748 } 727 749 break; … … 761 783 dev->state = UPNPDEV_STATE_ADD; 762 784 } 785 else 786 { 787 tr_dbg( "upnp device %s: get failed with http code %i", 788 dev->host, code ); 789 } 763 790 break; 764 791 … … 772 799 dev->state = UPNPDEV_STATE_READY; 773 800 dev->looping = 0; 801 } 802 else 803 { 804 tr_dbg( "upnp device %s: del failed with http code %i", 805 dev->host, code ); 774 806 } 775 807 break; … … 888 920 if( NULL == dev->http ) 889 921 { 890 tr_dbg( "upnp device %s: http init failed, state ?-> error",891 dev->host );922 tr_dbg( "upnp device %s: http init failed, state %hhu -> error", 923 dev->host, dev->state ); 892 924 dev->state = UPNPDEV_STATE_ERROR; 893 925 dev->soapretry = 0; … … 919 951 if( dev->soapretry ) 920 952 { 921 tr_dbg( "upnp device %s: http pulse failed, state ?-> error",922 dev->host );953 tr_dbg( "upnp device %s: http pulse failed, state %hhu -> error", 954 dev->host, dev->state ); 923 955 dev->state = UPNPDEV_STATE_ERROR; 924 956 dev->soapretry = 0;
Note: See TracChangeset
for help on using the changeset viewer.