summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2012-10-19 10:07:55 +0000
committerandre <andre@FreeBSD.org>2012-10-19 10:07:55 +0000
commit91a702221a940f2abfec83cda26ac4b40efc2165 (patch)
treee1c453c68decbdece517a73cbf650eaf65606efc /sys/net
parent320da564914bb3ccff3f6df23efc01504aa79a0e (diff)
downloadFreeBSD-src-91a702221a940f2abfec83cda26ac4b40efc2165.zip
FreeBSD-src-91a702221a940f2abfec83cda26ac4b40efc2165.tar.gz
Update to previous r241688 to use __func__ instead of spelled out function
name in log(9) message. Suggested by: glebius
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 8c019c6..1c887cb 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -711,8 +711,8 @@ if_attachdomain1(struct ifnet *ifp)
return;
if (ifp->if_afdata_initialized >= domain_init_status) {
IF_AFDATA_UNLOCK(ifp);
- log(LOG_WARNING, "if_attachdomain called more than once "
- "on %s\n", ifp->if_xname);
+ log(LOG_WARNING, "%s called more than once on %s\n",
+ __func__, ifp->if_xname);
return;
}
ifp->if_afdata_initialized = domain_init_status;
OpenPOWER on IntegriCloud