Module Name:    src
Committed By:   christos
Date:           Sun Mar 30 23:25:20 UTC 2014

Modified Files:
        src/sys/dev/marvell: mvpex.c

Log Message:
provide a buffer for pci_intr_string()


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/marvell/mvpex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/marvell/mvpex.c
diff -u src/sys/dev/marvell/mvpex.c:1.11 src/sys/dev/marvell/mvpex.c:1.12
--- src/sys/dev/marvell/mvpex.c:1.11	Sun Mar 30 18:39:29 2014
+++ src/sys/dev/marvell/mvpex.c	Sun Mar 30 19:25:20 2014
@@ -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 @@ mvpex_intr_establish(void *v, pci_intr_h
 	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 @@ mvpex_intr_establish(void *v, pci_intr_h
 	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();
 

Reply via email to