From 19ad473d004fc1458bcb1e7017e8ed35fd0d5419 Mon Sep 17 00:00:00 2001 From: gene Date: Thu, 24 Apr 1997 02:10:15 +0000 Subject: [PATCH] Followingthe Scott Reynolds gravy train, very minor: >#ifdef DIAGNOSTIC, print the NuBus type fields for unrecognized boards. --- sys/arch/mac68k/dev/nubus.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sys/arch/mac68k/dev/nubus.c b/sys/arch/mac68k/dev/nubus.c index 52b89222806..8a10045ac9e 100644 --- a/sys/arch/mac68k/dev/nubus.c +++ b/sys/arch/mac68k/dev/nubus.c @@ -1,5 +1,5 @@ -/* $OpenBSD: nubus.c,v 1.11 1997/04/23 13:38:35 briggs Exp $ */ -/* $NetBSD: nubus.c,v 1.32 1997/02/28 07:54:02 scottr Exp $ */ +/* $OpenBSD: nubus.c,v 1.12 1997/04/24 02:10:15 gene Exp $ */ +/* $NetBSD: nubus.c,v 1.35 1997/04/22 20:20:32 scottr Exp $ */ /* * Copyright (c) 1995, 1996 Allen Briggs. All rights reserved. @@ -232,12 +232,16 @@ nubus_print(aux, name) struct nubus_attach_args *na = (struct nubus_attach_args *) aux; if (name) { - printf("%s: slot %x: %s ", name, na->fmt->slot, + printf("%s: slot %x: %s", name, na->fmt->slot, nubus_get_card_name(na->fmt)); - printf("(Vendor: %s, ", + printf(" (Vendor: %s,", nubus_get_vendor(na->fmt, NUBUS_RSRC_VEND_ID)); - printf("Part: %s)", + printf(" Part: %s", nubus_get_vendor(na->fmt, NUBUS_RSRC_VEND_PART)); +#ifdef DIAGNOSTIC + printf(" Type: %04x %04x %04x %04x", + na->category, na->type, na->drsw, na->drhw); +#endif } return (UNCONF); } -- 2.20.1