Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/tx change debug message.



details:   https://anonhg.NetBSD.org/src/rev/c3360f3bdd90
branches:  trunk
changeset: 483548:c3360f3bdd90
user:      uch <uch%NetBSD.org@localhost>
date:      Sun Mar 12 15:42:43 2000 +0000

description:
change debug message.

diffstat:

 sys/arch/hpcmips/tx/tx39sib.c |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r e83386a8c313 -r c3360f3bdd90 sys/arch/hpcmips/tx/tx39sib.c
--- a/sys/arch/hpcmips/tx/tx39sib.c     Sun Mar 12 15:36:11 2000 +0000
+++ b/sys/arch/hpcmips/tx/tx39sib.c     Sun Mar 12 15:42:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tx39sib.c,v 1.5 2000/03/04 11:39:29 uch Exp $ */
+/*     $NetBSD: tx39sib.c,v 1.6 2000/03/12 15:42:43 uch Exp $ */
 
 /*
  * Copyright (c) 2000, by UCHIYAMA Yasushi
@@ -327,14 +327,15 @@
        
        tx_conf_write(tc, TX39_INTRSTATUS1_REG, TX39_INTRSTATUS1_SIBSF0INT);
        for (i = 0; (!(tx_conf_read(tc, TX39_INTRSTATUS1_REG) & 
-                      TX39_INTRSTATUS1_SIBSF0INT)) && i < 200; i++)
-               ;
-       if (i >= 200) {
+                      TX39_INTRSTATUS1_SIBSF0INT)) && i < 1000; i++) {
+               if (i > 100 && !(i % 100)) {
+                       printf("sf0 busy loop: retry count %d\n", i);
+               }
+       }
+
+       if (i >= 1000) {
                printf("sf0 busy\n");
                return 0;
-       } else  if (i > 100) {
-               printf("sf0 busy loop:%d\n", i);
-               return 0;
        }
 
        return 1;



Home | Main Index | Thread Index | Old Index