diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2014-08-14 07:55:18 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2014-08-14 07:55:18 +0000 |
commit | 2ce63928a69abfc963d51aa70e3125634e5fa009 (patch) | |
tree | 0196cc140ba42f0d00f0f1aea80b7e44d8496fdd | |
parent | b1be8e84dbd8e23745066985ab410413f40a1363 (diff) |
fix logging strings (correct function name via __func__ + a typo)
ok florian@ henning@
-rw-r--r-- | sys/net/pf_lb.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/net/pf_lb.c b/sys/net/pf_lb.c index fd862ce9dc5..f666dc20497 100644 --- a/sys/net/pf_lb.c +++ b/sys/net/pf_lb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_lb.c,v 1.32 2014/07/22 11:06:10 mpi Exp $ */ +/* $OpenBSD: pf_lb.c,v 1.33 2014/08/14 07:55:17 blambert Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -828,8 +828,8 @@ pf_postprocess_addr(struct pf_state *cur) lookup_addr = sks->addr[1]; else { if (pf_status.debug >= LOG_DEBUG) { - log(LOG_DEBUG, "pf: pf_unlink_state: " - "unable to optain address"); + log(LOG_DEBUG, "pf: %s: unable to obtain address", + __func__); } return (1); } @@ -850,8 +850,8 @@ pf_postprocess_addr(struct pf_state *cur) rpool.addr.p.tbl, &lookup_addr, sks->af)) == -1) { if (pf_status.debug >= LOG_DEBUG) { - log(LOG_DEBUG, "pf: pf_unlink_state: " - "selected address "); + log(LOG_DEBUG, "pf: %s: selected address ", + __func__); pf_print_host(&lookup_addr, sks->port[0], sks->af); addlog(". Failed to " @@ -864,9 +864,8 @@ pf_postprocess_addr(struct pf_state *cur) rpool.addr.p.dyn->pfid_kt, &lookup_addr, sks->af)) == -1) { if (pf_status.debug >= LOG_DEBUG) { - log(LOG_DEBUG, - "pf: pf_unlink_state: " - "selected address "); + log(LOG_DEBUG, "pf: %s: selected address ", + __func__); pf_print_host(&lookup_addr, sks->port[0], sks->af); addlog(". Failed to " @@ -877,8 +876,7 @@ pf_postprocess_addr(struct pf_state *cur) } if (slbcount > -1) { if (pf_status.debug >= LOG_NOTICE) { - log(LOG_NOTICE, - "pf: pf_unlink_state: selected address "); + log(LOG_NOTICE, "pf: %s: selected address ", __func__); pf_print_host(&lookup_addr, sks->port[0], sks->af); addlog(" decreased state count to %u\n", |