Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel provide more things needed by new subr_prf.c.



details:   https://anonhg.NetBSD.org/src/rev/e64fc122c4d9
branches:  trunk
changeset: 377578:e64fc122c4d9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jul 18 06:37:55 2023 +0000

description:
provide more things needed by new subr_prf.c.

diffstat:

 tests/kernel/gen_t_subr_prf |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 363a212fd798 -r e64fc122c4d9 tests/kernel/gen_t_subr_prf
--- a/tests/kernel/gen_t_subr_prf       Tue Jul 18 03:01:35 2023 +0000
+++ b/tests/kernel/gen_t_subr_prf       Tue Jul 18 06:37:55 2023 +0000
@@ -25,6 +25,16 @@ cat << _EOF > $2
 
 #define kmem_alloc(n, f)       malloc(n)
 
+#define kprintf_lock()         __nothing
+#define kprintf_unlock()       __nothing
+
+/* Arbitrary */
+#define TOCONS 1
+#define TOLOG  2
+
+#define kprintf_internal(f, i1, i2, i3, ...) \
+       printf(f, __VA_ARGS__)
+
 static int putchar(char c, int foo, void *b)
 {
        return fputc(c, stderr);



Home | Main Index | Thread Index | Old Index