diff options
author | bz <bz@FreeBSD.org> | 2008-03-14 11:09:11 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-03-14 11:09:11 +0000 |
commit | 693055a8ae2520b8199c4b351a7d8081891fe0a6 (patch) | |
tree | 31771977edca63464e09236c6e1841ea2bffc0c2 /sys/netinet6/ip6_output.c | |
parent | 5d1ed3596a53c089c8fa317749b7007ee6573bed (diff) | |
download | FreeBSD-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/ip6_output.c')
-rw-r--r-- | sys/netinet6/ip6_output.c | 6 |
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 */ |