Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/include Let the bootloader override the prog...



details:   https://anonhg.NetBSD.org/src/rev/c7d79463061a
branches:  trunk
changeset: 433455:c7d79463061a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Sep 15 17:05:56 2018 +0000

description:
Let the bootloader override the progress function by defining PROGRESS_FN

diffstat:

 sys/arch/evbarm/include/loadfile_machdep.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 2b97eb2744a9 -r c7d79463061a sys/arch/evbarm/include/loadfile_machdep.h
--- a/sys/arch/evbarm/include/loadfile_machdep.h        Sat Sep 15 16:44:15 2018 +0000
+++ b/sys/arch/evbarm/include/loadfile_machdep.h        Sat Sep 15 17:05:56 2018 +0000
@@ -26,7 +26,12 @@
                                        else \
                                                (void)printf("\n"); \
                                } while(/* CONSTCOND */0)
+#ifdef PROGRESS_FN
+void PROGRESS_FN(const char *, ...) __printflike(1, 2);
+#define PROGRESS(a)            PROGRESS_FN a
+#else
 #define PROGRESS(a)            (void)printf a
+#endif
 #define ALLOC(a)               alloc(a)
 #define DEALLOC(a, b)          dealloc(a, b)
 #define OKMAGIC(a)             ((a) == ZMAGIC)



Home | Main Index | Thread Index | Old Index