mtu3_trace.c 450 B

123456789101112131415161718192021222324
  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. #define CREATE_TRACE_POINTS
  10. #include "mtu3_debug.h"
  11. #include "mtu3_trace.h"
  12. void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
  13. {
  14. struct va_format vaf;
  15. va_list args;
  16. va_start(args, fmt);
  17. vaf.fmt = fmt;
  18. vaf.va = &args;
  19. trace_mtu3_log(dev, &vaf);
  20. va_end(args);
  21. }