Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci normalize error message if agp_map_aperture() fails



details:   https://anonhg.NetBSD.org/src/rev/926c5c5e86fb
branches:  trunk
changeset: 514985:926c5c5e86fb
user:      drochner <drochner%NetBSD.org@localhost>
date:      Sat Sep 15 13:01:44 2001 +0000

description:
normalize error message if agp_map_aperture() fails

diffstat:

 sys/dev/pci/agp.c      |  7 +++----
 sys/dev/pci/agp_i810.c |  3 ++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 997fbaa10875 -r 926c5c5e86fb sys/dev/pci/agp.c
--- a/sys/dev/pci/agp.c Sat Sep 15 12:47:04 2001 +0000
+++ b/sys/dev/pci/agp.c Sat Sep 15 13:01:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp.c,v 1.7 2001/09/15 01:32:10 thorpej Exp $  */
+/*     $NetBSD: agp.c,v 1.8 2001/09/15 13:01:44 drochner Exp $ */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -284,10 +284,9 @@
         */
        if (pci_mapreg_map(pa, AGP_APBASE, PCI_MAPREG_TYPE_MEM,
            BUS_SPACE_MAP_LINEAR,
-           &sc->as_apt, &sc->as_aph, &sc->as_apaddr, &sc->as_apsize) != 0) {
-               printf("%s: can't map aperture space\n", sc->as_dev.dv_xname);
+           &sc->as_apt, &sc->as_aph, &sc->as_apaddr, &sc->as_apsize) != 0)
                return ENXIO;
-       }
+
        return 0;
 }
 
diff -r 997fbaa10875 -r 926c5c5e86fb sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Sat Sep 15 12:47:04 2001 +0000
+++ b/sys/dev/pci/agp_i810.c    Sat Sep 15 13:01:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.6 2001/09/15 00:25:00 thorpej Exp $     */
+/*     $NetBSD: agp_i810.c,v 1.7 2001/09/15 13:01:45 drochner Exp $    */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -134,6 +134,7 @@
 
        error = agp_map_aperture(&isc->vga_pa, sc);
        if (error != 0) {
+               printf(": can't map aperture\n");
                free(isc, M_AGP);
                return error;
        }



Home | Main Index | Thread Index | Old Index