Changeset 13868 for trunk/libtransmission/tr-lpd.c
- Timestamp:
- Jan 25, 2013, 11:34:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tr-lpd.c
r13847 r13868 49 49 /* libT */ 50 50 #include "transmission.h" 51 #include "log.h" 51 52 #include "net.h" 52 53 #include "peer-mgr.h" /* tr_peerMgrAddPex () */ … … 281 282 return -1; 282 283 283 tr_ ndbg ("LPD", "Initialising Local Peer Discovery");284 tr_logAddNamedDbg ("LPD", "Initialising Local Peer Discovery"); 284 285 285 286 /* setup datagram socket (receive) */ … … 352 353 tr_timerAdd (upkeep_timer, UPKEEP_INTERVAL_SECS, 0); 353 354 354 tr_ ndbg ("LPD", "Local Peer Discovery initialised");355 tr_logAddNamedDbg ("LPD", "Local Peer Discovery initialised"); 355 356 356 357 return 1; … … 363 364 lpd_socket = lpd_socket2 = -1; 364 365 session = NULL; 365 tr_ ndbg ("LPD", "LPD initialisation failed (errno = %d)", save);366 tr_logAddNamedDbg ("LPD", "LPD initialisation failed (errno = %d)", save); 366 367 errno = save; 367 368 } … … 376 377 return; 377 378 378 tr_ ndbg ("LPD", "Uninitialising Local Peer Discovery");379 tr_logAddNamedDbg ("LPD", "Uninitialising Local Peer Discovery"); 379 380 380 381 event_free (lpd_event); … … 387 388 evutil_closesocket (lpd_socket); 388 389 evutil_closesocket (lpd_socket2); 389 tr_ ndbg ("LPD", "Done uninitialising Local Peer Discovery");390 tr_logAddNamedDbg ("LPD", "Done uninitialising Local Peer Discovery"); 390 391 391 392 session = NULL; … … 471 472 } 472 473 473 tr_ tordbg (t, "LPD announce message away");474 tr_logAddTorDbg (t, "LPD announce message away"); 474 475 475 476 return true; … … 532 533 /* we found a suitable peer, add it to the torrent */ 533 534 tr_peerMgrAddPex (tor, TR_PEER_FROM_LPD, peer, -1); 534 tr_ tordbg (tor, "Learned %d local peer from LPD (%s:%u)",535 tr_logAddTorDbg (tor, "Learned %d local peer from LPD (%s:%u)", 535 536 1, tr_address_to_string (&peer->addr), peerPort); 536 537 … … 540 541 } 541 542 else 542 tr_ ndbg ("LPD", "Cannot serve torrent #%s", hashString);543 tr_logAddNamedDbg ("LPD", "Cannot serve torrent #%s", hashString); 543 544 } 544 545 … … 609 610 610 611 if (lpd_unsolicitedMsgCounter < 0) 611 tr_ ninf("LPD", "Dropped %d announces in the last interval (max. %d "612 tr_logAddNamedInfo ("LPD", "Dropped %d announces in the last interval (max. %d " 612 613 "allowed)", -lpd_unsolicitedMsgCounter, maxAnnounceCap); 613 614 … … 667 668 } 668 669 669 tr_ ndbg ("LPD", "Discarded invalid multicast message");670 } 671 } 672 670 tr_logAddNamedDbg ("LPD", "Discarded invalid multicast message"); 671 } 672 } 673
Note: See TracChangeset
for help on using the changeset viewer.