kprintf variants for testing.

This commit is contained in:
Geoffrey Challen
2015-12-31 11:41:16 -05:00
parent a4ad38f616
commit a33db5e187
2 changed files with 69 additions and 5 deletions

View File

@@ -197,4 +197,13 @@ void kprintf_bootstrap(void);
void random_yielder(uint32_t);
void random_spinner(uint32_t);
/*
* Testing variants of kprintf. tprintf is silent during automated testing.
* sprintf prefixes the kernel secret to kprintf messages during automated
* testing.
*/
int tkprintf(const char *format, ...) __PF(1,2);
int skprintf(const char *format, ...) __PF(1,2);
#endif /* _LIB_H_ */