2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
7 #include <utility/tagitem.h>
8 #include <proto/arossupport.h>
12 #include "../kernel/hostinterface.h"
14 int __vcformat(void *data
, int(*outc
)(int, void *), const char * format
, va_list args
);
15 int KPrintf(struct HostInterface
*hif
, const char *format
, ...);
17 int __startup
start(const struct TagItem
*tags
)
20 struct HostInterface
*hif
= (struct HostInterface
*)LibGetTagData(KRN_HostInterface
, 0, tags
);
25 KPrintf(hif
, "Test module successfully started\n");
26 KPrintf(hif
, "Taglist at 0x%p:\n", tags
);
28 while ((tag
= LibNextTagItem((struct TagItem
**)&tags
)))
30 KPrintf(hif
, "0x%08lX 0x%p\n", tag
->ti_Tag
, tag
->ti_Data
);
36 static int kputc(int c
, void *data
)
38 return ((struct HostInterface
*)data
)->KPutC(c
);
41 int KPrintf(struct HostInterface
*iface
, const char *format
, ...)
47 res
= __vcformat(iface
, kputc
, format
, ap
);