Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * mtu3_trace.c - trace support
0004  *
0005  * Copyright (C) 2019 MediaTek Inc.
0006  *
0007  * Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
0008  */
0009 
0010 #define CREATE_TRACE_POINTS
0011 #include "mtu3_debug.h"
0012 #include "mtu3_trace.h"
0013 
0014 void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
0015 {
0016     struct va_format vaf;
0017     va_list args;
0018 
0019     va_start(args, fmt);
0020     vaf.fmt = fmt;
0021     vaf.va = &args;
0022     trace_mtu3_log(dev, &vaf);
0023     va_end(args);
0024 }