Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/marvell Use device name instead of fixed string "mvp...



details:   https://anonhg.NetBSD.org/src/rev/52cfa1e111e3
branches:  trunk
changeset: 341872:52cfa1e111e3
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Nov 27 00:08:43 2015 +0000

description:
Use device name instead of fixed string "mvpex" for evcnt group.

diffstat:

 sys/dev/marvell/mvpex.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 93380782dc40 -r 52cfa1e111e3 sys/dev/marvell/mvpex.c
--- a/sys/dev/marvell/mvpex.c   Thu Nov 26 23:44:57 2015 +0000
+++ b/sys/dev/marvell/mvpex.c   Fri Nov 27 00:08:43 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvpex.c,v 1.15 2015/10/02 05:22:52 msaitoh Exp $       */
+/*     $NetBSD: mvpex.c,v 1.16 2015/11/27 00:08:43 nonaka 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.15 2015/10/02 05:22:52 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.16 2015/11/27 00:08:43 nonaka Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -680,8 +680,8 @@
        pexih->ih_type = ipl;
        pexih->ih_intrtab = intrtab;
        mvpex_intr_string(v, pin, pexih->ih_evname, sizeof(pexih->ih_evname));
-       evcnt_attach_dynamic(&pexih->ih_evcnt, EVCNT_TYPE_INTR, NULL, "mvpex",
-           pexih->ih_evname);
+       evcnt_attach_dynamic(&pexih->ih_evcnt, EVCNT_TYPE_INTR, NULL,
+           device_xname(sc->sc_dev), pexih->ih_evname);
 
        s = splhigh();
 



Home | Main Index | Thread Index | Old Index