diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-05-13 21:53:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-05-13 21:53:33 +0000 |
commit | 2f8536dbf9224f23e0b7f4876748a261b1696b40 (patch) | |
tree | b2840c1ada5ab88e9e06ad003910c7756690e719 /sys/arch | |
parent | 850c9898a06a7a9003658db8644fb34912e52781 (diff) |
Meaningful panic messages; ok kettenis
Diffstat (limited to 'sys/arch')
-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) ; |