From 34f5b5e378b4b1c05a5ab9e1b393d18b041e360e Mon Sep 17 00:00:00 2001 From: pooka Date: Tue, 9 Dec 2003 15:19:33 +0000 Subject: [PATCH] The highest 16 bits of chipid identify the ASIC, so print only them. --- sys/dev/pci/if_bge.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 42bbb3b866c4..5b65e60cee98 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.55 2003/12/08 17:09:39 pooka Exp $ */ +/* $NetBSD: if_bge.c,v 1.56 2003/12/09 15:19:33 pooka Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.55 2003/12/08 17:09:39 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.56 2003/12/09 15:19:33 pooka Exp $"); #include "bpfilter.h" #include "vlan.h" @@ -2169,10 +2169,11 @@ bge_attach(parent, self, aux) aprint_normal("%s: ", sc->bge_dev.dv_xname); if (br == NULL) { - aprint_normal("unknown ASIC 0x%08x", sc->bge_chipid); + aprint_normal("unknown ASIC (0x%04x)", sc->bge_chipid >> 16); sc->bge_quirks = 0; } else { - aprint_normal("ASIC %s (0x%x)", br->br_name, sc->bge_chipid); + aprint_normal("ASIC %s (0x%04x)", + br->br_name, sc->bge_chipid >> 16); sc->bge_quirks |= br->br_quirks; } aprint_normal(", Ethernet address %s\n", ether_sprintf(eaddr));