Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern in sockaddr_getsize_by_family() print the p_comm, p...
details: https://anonhg.NetBSD.org/src/rev/10453b50c871
branches: trunk
changeset: 830186:10453b50c871
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Feb 28 09:44:25 2018 +0000
description:
in sockaddr_getsize_by_family() print the p_comm, pid and lid
for unknown address family. helps location where missing
af settings are.
diffstat:
sys/kern/uipc_domain.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 538c7aa4a087 -r 10453b50c871 sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c Wed Feb 28 09:25:02 2018 +0000
+++ b/sys/kern/uipc_domain.c Wed Feb 28 09:44:25 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_domain.c,v 1.101 2018/01/10 02:50:26 ozaki-r Exp $ */
+/* $NetBSD: uipc_domain.c,v 1.102 2018/02/28 09:44:25 mrg Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.101 2018/01/10 02:50:26 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.102 2018/02/28 09:44:25 mrg Exp $");
#include <sys/param.h>
#include <sys/socket.h>
@@ -289,7 +289,9 @@
return sizeof(struct sockaddr_at);
default:
#ifdef DIAGNOSTIC
- printf("%s: Unhandled address family=%hhu\n", __func__, af);
+ printf("%s: (%s:%u:%u) Unhandled address family=%hhu\n",
+ __func__, curlwp->l_proc->p_comm,
+ curlwp->l_proc->p_pid, curlwp->l_lid, af);
#endif
return 0;
}
Home |
Main Index |
Thread Index |
Old Index