diff options
author | 2008-05-13 21:53:32 +0000 | |
---|---|---|
committer | 2008-05-13 21:53:32 +0000 | |
commit | 64de699fdf2634d3f974b4eaba550cc6f690fb25 (patch) | |
tree | 52e5fa5fa37a899dfa27c130ce1b432d97f293c7 | |
parent | Sync (diff) | |
download | wireguard-openbsd-64de699fdf2634d3f974b4eaba550cc6f690fb25.tar.xz wireguard-openbsd-64de699fdf2634d3f974b4eaba550cc6f690fb25.zip |
Meaningful panic messages; ok kettenis
-rw-r--r-- | sys/arch/socppc/dev/ipic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/socppc/dev/ipic.c b/sys/arch/socppc/dev/ipic.c index befc10c43e3..ed6706289fe 100644 --- a/sys/arch/socppc/dev/ipic.c +++ b/sys/arch/socppc/dev/ipic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipic.c,v 1.1 2008/05/10 12:02:20 kettenis Exp $ */ +/* $OpenBSD: ipic.c,v 1.2 2008/05/13 21:53:32 miod Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -220,10 +220,10 @@ intr_establish(int ivec, int type, int level, ih = malloc(sizeof *ih, M_DEVBUF, cold ? M_NOWAIT : M_WAITOK); if (ih == NULL) - panic("xxx"); + panic("%s: malloc failed", __func__); if (ivec < 0 || ivec >= IPIC_NVEC) - panic("xxx"); + panic("%s: invalid vector %d", __func__, ivec); for (p = &ipic_intrhand[ivec]; (q = *p) != NULL; p = &q->ih_next) ; |