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
This commit is contained in:
Bjoern A. Zeeb 2008-03-14 11:09:11 +00:00
parent 8ab7c8f322
commit 41aa71dd3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177165

View File

@ -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 @@ skip_ipsec2:;
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 */