Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/kdump print detailed info about other SI_ codes.
details: https://anonhg.NetBSD.org/src/rev/d9505c708299
branches: trunk
changeset: 763991:d9505c708299
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 10 00:05:51 2011 +0000
description:
print detailed info about other SI_ codes.
diffstat:
usr.bin/kdump/kdump.c | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r e68199ac06e6 -r d9505c708299 usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Sun Apr 10 00:04:37 2011 +0000
+++ b/usr.bin/kdump/kdump.c Sun Apr 10 00:05:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.106 2011/01/10 05:15:17 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.107 2011/04/10 00:05:51 christos Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.106 2011/01/10 05:15:17 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.107 2011/04/10 00:05:51 christos Exp $");
#endif
#endif /* not lint */
@@ -943,14 +943,17 @@
si->si_uid, si->si_value.sival_ptr);
return;
case SI_ASYNCIO:
- code = "SI_ASYNCIO";
- break;
case SI_MESGQ:
- code = "SI_MESGQ";
- break;
+ printf(": code=%s with sigval %p)\n",
+ si->si_code == SI_ASYNCIO ?
+ "SI_ASYNCIO" : "SI_MESGQ",
+ si->si_value.sival_ptr);
+ return;
case SI_LWP:
- code = "SI_LWP";
- break;
+ printf(": code=SI_LWP sent by pid=%d, uid=%d "
+ "with target lid=%d)\n", si->si_pid,
+ si->si_uid, si->si_lid);
+ return;
default:
code = NULL;
break;
Home |
Main Index |
Thread Index |
Old Index