Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/dev Deleted verbose error message in probe ...



details:   https://anonhg.NetBSD.org/src/rev/5d048294d60f
branches:  trunk
changeset: 520214:5d048294d60f
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sat Jan 05 00:40:38 2002 +0000

description:
Deleted verbose error message in probe routine to probe silently.

diffstat:

 sys/arch/hpcmips/dev/com_hpcio.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (33 lines):

diff -r fb29f4d93218 -r 5d048294d60f sys/arch/hpcmips/dev/com_hpcio.c
--- a/sys/arch/hpcmips/dev/com_hpcio.c  Sat Jan 05 00:16:42 2002 +0000
+++ b/sys/arch/hpcmips/dev/com_hpcio.c  Sat Jan 05 00:40:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_hpcio.c,v 1.1 2002/01/04 14:11:51 takemura Exp $   */
+/*     $NetBSD: com_hpcio.c,v 1.2 2002/01/05 00:40:38 takemura Exp $   */
 
 /*-
  * Copyright (c) 2002 TAKEMRUA Shin. All rights reserved.
@@ -235,10 +235,8 @@
         * try byte aligned register
         */
        *alignment = COM_HPCIO_BYTE_ALIGNMENT;
-       if (bus_space_map(iot, iobase, 1, 0, &ioh)) {
-               printf(": can't map i/o space\n");
+       if (bus_space_map(iot, iobase, 1, 0, &ioh))
                return 0;
-       }
        rv = comprobe1(iot, ioh);
        bus_space_unmap(iot, ioh, 1);
 
@@ -250,10 +248,8 @@
         */
        *alignment = COM_HPCIO_HALFWORD_ALIGNMENT;
        com_hpcio_iot_init(&tmpiot, iot);
-       if (bus_space_map(&tmpiot, iobase, 1, 0, &ioh)) {
-               printf(": can't map i/o space\n");
+       if (bus_space_map(&tmpiot, iobase, 1, 0, &ioh))
                return 0;
-       }
        rv = comprobe1(&tmpiot, ioh);
        bus_space_unmap(&tmpiot, ioh, 1);
 



Home | Main Index | Thread Index | Old Index