Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/dev * fix thinko in mace_print() to prevent...



details:   https://anonhg.NetBSD.org/src/rev/06911de9205f
branches:  trunk
changeset: 515974:06911de9205f
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Oct 11 15:17:42 2001 +0000

description:
* fix thinko in mace_print() to prevent intr with value MACECF_INTR_DEFAULT
  from getting printed
* fetch device name from dv_xname instead of using hardcoded value

diffstat:

 sys/arch/sgimips/dev/mace.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 146a3043e99d -r 06911de9205f sys/arch/sgimips/dev/mace.c
--- a/sys/arch/sgimips/dev/mace.c       Thu Oct 11 15:04:44 2001 +0000
+++ b/sys/arch/sgimips/dev/mace.c       Thu Oct 11 15:17:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mace.c,v 1.2 2001/07/08 23:59:31 thorpej Exp $ */
+/*     $NetBSD: mace.c,v 1.3 2001/10/11 15:17:42 pooka Exp $   */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -96,8 +96,10 @@
        printf("mace0: isa msk %llx\n", *(volatile u_int64_t *)0xbf310018);
        *(volatile u_int64_t *)0xbf310018 = 0xffffffff;
 #endif
-       printf("mace0: isa sts %llx\n", *(volatile u_int64_t *)0xbf310010);
-       printf("mace0: isa msk %llx\n", *(volatile u_int64_t *)0xbf310018);
+       printf("%s: isa sts %llx\n", self->dv_xname,
+           *(volatile u_int64_t *)0xbf310010);
+       printf("%s: isa msk %llx\n", self->dv_xname,
+           *(volatile u_int64_t *)0xbf310018);
 
        config_search(mace_search, self, NULL);
 }
@@ -115,7 +117,7 @@
 
        if (maa->maa_offset != MACECF_OFFSET_DEFAULT)
                printf(" offset 0x%lx", maa->maa_offset);
-       if (maa->maa_offset != MACECF_INTR_DEFAULT)
+       if (maa->maa_intr != MACECF_INTR_DEFAULT)
                printf(" intr %d", maa->maa_intr);
 #if 0
        if (maa->maa_offset != MACECF_STRIDE_DEFAULT)



Home | Main Index | Thread Index | Old Index