Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev - Adjust location of \n in attach message.



details:   https://anonhg.NetBSD.org/src/rev/7d42ec6c6c8c
branches:  trunk
changeset: 935513:7d42ec6c6c8c
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jul 04 11:55:18 2020 +0000

description:
- Adjust location of \n in attach message.
- Convert to aprint_*(9).

diffstat:

 sys/arch/macppc/dev/smu.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 789492bd6beb -r 7d42ec6c6c8c sys/arch/macppc/dev/smu.c
--- a/sys/arch/macppc/dev/smu.c Sat Jul 04 10:49:09 2020 +0000
+++ b/sys/arch/macppc/dev/smu.c Sat Jul 04 11:55:18 2020 +0000
@@ -217,6 +217,8 @@
                return;
        }
 
+       aprint_normal("\n");
+
        smu_setup_fans(sc);
        smu_setup_iicbus(sc);
 
@@ -227,7 +229,6 @@
 
        smu_setup_sme(sc);
 
-       printf("\n");
        smu_setup_zones(sc);
 }
 
@@ -866,7 +867,8 @@
                        z->nfans++;
                }
        }
-       printf("using %d fans for CPU zone\n", z->nfans);
+       aprint_normal_dev(sc->sc_dev,
+           "using %d fans for CPU zone\n", z->nfans);
        z->threshold = C_TO_uK(45);
        z->duty = 150;
        z->step = 3;    
@@ -881,7 +883,8 @@
                        z->nfans++;
                }
        }
-       printf("using %d fans for drive bay zone\n", z->nfans);
+       aprint_normal_dev(sc->sc_dev,
+           "using %d fans for drive bay zone\n", z->nfans);
        z->threshold = C_TO_uK(40);
        z->duty = 150;
        z->step = 2;
@@ -897,7 +900,8 @@
                        z->nfans++;
                }
        }
-       printf("using %d fans for expansion slots zone\n", z->nfans);
+       aprint_normal_dev(sc->sc_dev,
+           "using %d fans for expansion slots zone\n", z->nfans);
        z->threshold = C_TO_uK(40);
        z->duty = 150;
        z->step = 2;



Home | Main Index | Thread Index | Old Index