2
0

function-string.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- arpd/arpd.c.orig Sun Feb 9 05:20:40 2003
  2. +++ arpd/arpd.c Thu Jul 21 17:05:40 2005
  3. @@ -265,7 +265,7 @@
  4. spa->addr_ip, tha->addr_eth, tpa->addr_ip);
  5. if (op == ARP_OP_REQUEST) {
  6. - syslog(LOG_DEBUG, __FUNCTION__ ": who-has %s tell %s",
  7. + syslog(LOG_DEBUG, "%s: who-has %s tell %s", __FUNCTION__,
  8. addr_ntoa(tpa), addr_ntoa(spa));
  9. } else if (op == ARP_OP_REPLY) {
  10. syslog(LOG_INFO, "arp reply %s is-at %s",
  11. @@ -282,7 +282,7 @@
  12. int error;
  13. if (addr_cmp(addr, &arpd_ifent.intf_addr) == 0) {
  14. - syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
  15. + syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__,
  16. addr_ntoa(addr), addr_ntoa(&arpd_ifent.intf_link_addr));
  17. return (0);
  18. }
  19. @@ -291,10 +291,10 @@
  20. error = arp_get(arpd_arp, &arpent);
  21. if (error == -1) {
  22. - syslog(LOG_DEBUG, __FUNCTION__ ": no entry for %s",
  23. + syslog(LOG_DEBUG, "%s: no entry for %s", __FUNCTION__,
  24. addr_ntoa(addr));
  25. } else {
  26. - syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
  27. + syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__,
  28. addr_ntoa(addr), addr_ntoa(&arpent.arp_ha));
  29. }
  30. return (error);
  31. @@ -423,7 +423,7 @@
  32. if ((req = SPLAY_FIND(tree, &arpd_reqs, &tmp)) != NULL) {
  33. addr_pack(&src.arp_ha, ADDR_TYPE_ETH, ETH_ADDR_BITS,
  34. ethip->ar_sha, ETH_ADDR_LEN);
  35. - syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
  36. + syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__,
  37. addr_ntoa(&req->pa), addr_ntoa(&src.arp_ha));
  38. /* This address is claimed */