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:
parent
8ab7c8f322
commit
41aa71dd3e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user