From 813ee737dd9a74d70f850bf2bc426f3656f73664 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Fri, 19 Oct 2012 10:07:55 +0000 Subject: [PATCH] Update to previous r241688 to use __func__ instead of spelled out function name in log(9) message. Suggested by: glebius --- sys/net/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 8c019c67c93..1c887cb1e16 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;