Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell provide a buffer for pci_intr_string()
details: https://anonhg.NetBSD.org/src/rev/6d277bfdb990
branches: trunk
changeset: 328315:6d277bfdb990
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 30 23:25:20 2014 +0000
description:
provide a buffer for pci_intr_string()
diffstat:
sys/dev/marvell/mvpex.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r b42bc896950f -r 6d277bfdb990 sys/dev/marvell/mvpex.c
--- a/sys/dev/marvell/mvpex.c Sun Mar 30 23:20:14 2014 +0000
+++ b/sys/dev/marvell/mvpex.c Sun Mar 30 23:25:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvpex.c,v 1.11 2014/03/30 22:39:29 htodd Exp $ */
+/* $NetBSD: mvpex.c,v 1.12 2014/03/30 23:25:20 christos Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.11 2014/03/30 22:39:29 htodd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.12 2014/03/30 23:25:20 christos Exp $");
#include "opt_pci.h"
#include "pci.h"
@@ -660,6 +660,7 @@
struct mvpex_intrhand *pexih;
uint32_t mask;
int ih = pin - 1, s;
+ char buf[PCI_INTRSTR_LEN];
intrtab = &sc->sc_intrtab[ih];
@@ -674,7 +675,7 @@
pexih->ih_type = ipl;
pexih->ih_intrtab = intrtab;
evcnt_attach_dynamic(&pexih->ih_evcnt, EVCNT_TYPE_INTR, NULL, "mvpex",
- mvpex_intr_string(v, pin));
+ mvpex_intr_string(v, pin, buf, sizeof(buf)));
s = splhigh();
Home |
Main Index |
Thread Index |
Old Index