1// SPDX-License-Identifier: GPL-2.0
2/*
3 * mtu3_trace.c - trace support
4 *
5 * Copyright (C) 2019 MediaTek Inc.
6 *
7 * Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
8 */
9
10#define CREATE_TRACE_POINTS
11#include "mtu3_debug.h"
12#include "mtu3_trace.h"
13
14void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
15{
16	struct va_format vaf;
17	va_list args;
18
19	va_start(args, fmt);
20	vaf.fmt = fmt;
21	vaf.va = &args;
22	trace_mtu3_log(dev, &vaf);
23	va_end(args);
24}
25