30 lines
512 B
C
30 lines
512 B
C
/*
|
|
Copyright (c), 2001-2022, Shenshu Tech. Co., Ltd.
|
|
*/
|
|
|
|
#include "ot_osal.h"
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/printk.h>
|
|
|
|
int osal_printk(const char *fmt, ...)
|
|
{
|
|
va_list args;
|
|
int r;
|
|
|
|
va_start(args, fmt);
|
|
r = vprintk(fmt, args);
|
|
va_end(args);
|
|
|
|
return r;
|
|
}
|
|
EXPORT_SYMBOL(osal_printk);
|
|
|
|
#ifdef OT_DEBUG
|
|
void osal_panic(const char *fmt, const char *fun, int line, const char *cond)
|
|
{
|
|
panic(fmt, fun, line, cond);
|
|
}
|
|
EXPORT_SYMBOL(osal_panic);
|
|
#endif
|