summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-03-14 11:09:11 +0000
committerbz <bz@FreeBSD.org>2008-03-14 11:09:11 +0000
commit693055a8ae2520b8199c4b351a7d8081891fe0a6 (patch)
tree31771977edca63464e09236c6e1841ea2bffc0c2 /sys/netinet6
parent5d1ed3596a53c089c8fa317749b7007ee6573bed (diff)
downloadFreeBSD-src-693055a8ae2520b8199c4b351a7d8081891fe0a6.zip
FreeBSD-src-693055a8ae2520b8199c4b351a7d8081891fe0a6.tar.gz
Replace the function name in two identical printfs
by __func__, __LINE__ so we can distinguish them when people report a problem. PR: 121373 MFC after: 5 days
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_output.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 8f7caa5..5755a1f 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -395,7 +395,8 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
case ENOMEM:
break;
default:
- printf("ip6_output (ipsec): error code %d\n", error);
+ printf("[%s:%d] (ipsec): error code %d\n",
+ __func__, __LINE__, error);
/* FALLTHROUGH */
case ENOENT:
/* don't show these error codes to the user */
@@ -562,7 +563,8 @@ again:
case ENOMEM:
break;
default:
- printf("ip6_output (ipsec): error code %d\n", error);
+ printf("[%s:%d] (ipsec): error code %d\n",
+ __func__, __LINE__, error);
/* FALLTHROUGH */
case ENOENT:
/* don't show these error codes to the user */
OpenPOWER on IntegriCloud