Changeset 5279
- Timestamp:
- Mar 18, 2008, 2:15:19 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/natpmp.c
r5243 r5279 70 70 tr_ndbg( getKey(), _( "%s succeeded (%d)" ), func, ret ); 71 71 else 72 tr_n err( getKey(), _( "%s failed (%d): %s (%d)" ), func, ret, tr_strerror(errno), errno );72 tr_ndbg( getKey(), _( "%s failed (%d): %s (%d)" ), func, ret, tr_strerror(errno), errno ); 73 73 } 74 74 … … 110 110 setErrorState( struct tr_natpmp * nat ) 111 111 { 112 tr_n err( getKey(), _( "If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" ) );113 tr_n err( getKey(), _( "NAT-PMP port forwarding unsuccessful, trying UPnP next" ) );112 tr_ndbg( getKey(), _( "If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" ) ); 113 tr_ndbg( getKey(), _( "NAT-PMP port forwarding unsuccessful, trying UPnP next" ) ); 114 114 nat->state = TR_NATPMP_ERR; 115 115 } -
trunk/libtransmission/shared.c
r5266 r5279 96 96 tr_ninf( getKey(), _( "State changed from \"%s\" to \"%s\"" ), getNatStateStr(s->natStatus), getNatStateStr(status) ); 97 97 s->natStatus = status; 98 if( status == TR_NAT_TRAVERSAL_ERROR ) 99 tr_nerr( getKey(), _( "Port forwarding failed. See debug messages for more information." ) ); 98 100 } 99 101 } -
trunk/libtransmission/upnp.c
r5243 r5279 89 89 devlist = upnpDiscover( 2000, NULL, NULL ); 90 90 if( devlist == NULL ) { 91 tr_n err( getKey(), _( "upnpDiscover failed (errno %d - %s)" ), errno, tr_strerror(errno) );91 tr_ndbg( getKey(), _( "upnpDiscover failed (errno %d - %s)" ), errno, tr_strerror(errno) ); 92 92 } 93 93 errno = 0; 94 94 if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data, handle->lanaddr, sizeof(handle->lanaddr))) { 95 tr_n inf( getKey(), _( "Found Internet Gateway Device \"%s\"" ), handle->urls.controlURL );96 tr_n inf( getKey(), _( "Local Address is \"%s\"" ), handle->lanaddr );95 tr_ndbg( getKey(), _( "Found Internet Gateway Device \"%s\"" ), handle->urls.controlURL ); 96 tr_ndbg( getKey(), _( "Local Address is \"%s\"" ), handle->lanaddr ); 97 97 handle->state = TR_UPNP_IDLE; 98 98 handle->hasDiscovered = 1; 99 99 } else { 100 100 handle->state = TR_UPNP_ERR; 101 tr_n err( getKey(), _( "UPNP_GetValidIGD failed (errno %d - %s)" ), errno, tr_strerror(errno) );102 tr_n err( getKey(), _( "If your router supports UPnP, please make sure UPnP is enabled!" ) );101 tr_ndbg( getKey(), _( "UPNP_GetValidIGD failed (errno %d - %s)" ), errno, tr_strerror(errno) ); 102 tr_ndbg( getKey(), _( "If your router supports UPnP, please make sure UPnP is enabled!" ) ); 103 103 } 104 104 freeUPNPDevlist( devlist ); … … 154 154 handle->state = TR_UPNP_IDLE; 155 155 } else { 156 tr_n err( getKey(), _( "Port forwarding failed with error %d (%d - %s)" ), err, errno, tr_strerror(errno) );157 tr_n err( getKey(), _( "If your router supports UPnP, please make sure UPnP is enabled!" ) );156 tr_ndbg( getKey(), _( "Port forwarding failed with error %d (%d - %s)" ), err, errno, tr_strerror(errno) ); 157 tr_ndbg( getKey(), _( "If your router supports UPnP, please make sure UPnP is enabled!" ) ); 158 158 handle->port = -1; 159 159 handle->state = TR_UPNP_ERR;
Note: See TracChangeset
for help on using the changeset viewer.