Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/pnpbios fix cosmetic brain-oh in last; s/attac...



details:   https://anonhg.NetBSD.org/src/rev/73dfb695e3c3
branches:  trunk
changeset: 486028:73dfb695e3c3
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Thu May 11 15:26:23 2000 +0000

description:
fix cosmetic brain-oh in last; s/attachonly/matchonly/g

diffstat:

 sys/arch/i386/pnpbios/pnpbios.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r ca58f3cbe50f -r 73dfb695e3c3 sys/arch/i386/pnpbios/pnpbios.c
--- a/sys/arch/i386/pnpbios/pnpbios.c   Thu May 11 14:13:13 2000 +0000
+++ b/sys/arch/i386/pnpbios/pnpbios.c   Thu May 11 15:26:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pnpbios.c,v 1.16 2000/05/11 05:54:49 jhawk Exp $ */
+/* $NetBSD: pnpbios.c,v 1.17 2000/05/11 15:26:23 jhawk Exp $ */
 
 /*
  * Copyright (c) 2000 Jason R. Thorpe.  All rights reserved.
@@ -128,7 +128,7 @@
 static int     pnpbios_print           __P((void *aux, const char *pnp));
 static void    pnpbios_id_to_string    __P((u_int32_t pnpid, char *s));
 static int     pnpbios_attachnode      __P((struct pnpbios_softc *sc,
-    int idx, const u_int8_t *buf, size_t len, int attachonly));
+    int idx, const u_int8_t *buf, size_t len, int matchonly));
 
 static int     pnp_scan                __P((const u_int8_t **bufp,
     size_t maxlen, struct pnpresources *pnpresources, int in_depends));
@@ -785,12 +785,12 @@
 }
 
 static int
-pnpbios_attachnode(sc, idx, buf, len, attachonly)
+pnpbios_attachnode(sc, idx, buf, len, matchonly)
        struct pnpbios_softc *sc;
        int idx;
        const u_int8_t *buf;
        size_t len;
-       int attachonly;
+       int matchonly;
 {
        struct pnpdevnode *dn;
        const u_int8_t *p;
@@ -806,7 +806,7 @@
 
        DPRINTF(("%s (%s): type 0x%02x subtype "
            "0x%02x dpi 0x%02x attr 0x%04x:\n",
-           idstr, attachonly ? "static" : "dynamic", dn->dn_type,
+           idstr, matchonly ? "static" : "dynamic", dn->dn_type,
            dn->dn_subtype, dn->dn_dpi, dn->dn_attr));
        DPRINTF(("%s: allocated config scan:\n", idstr));
        res = pnp_scan(&p, len - 12, &r, 0);
@@ -866,7 +866,7 @@
 
        /* first try the specific device ID */
        aa.idstr = idstr;
-       if (attachonly
+       if (matchonly
            ? config_search(pnpbios_submatch, (struct device *)sc, &aa) != NULL
            : config_found_sm((struct device *)sc, &aa, pnpbios_print,
                pnpbios_submatch) != NULL)
@@ -876,7 +876,7 @@
        compatid = s.compatids;
        while (compatid) {
                aa.idstr = compatid->idstr;
-               if (attachonly
+               if (matchonly
                    ? config_search(pnpbios_submatch, (struct device *)sc,
                        &aa) != NULL
                    : config_found_sm((struct device *)sc, &aa, pnpbios_print,



Home | Main Index | Thread Index | Old Index