diff options
Diffstat (limited to 'debug.c')
| -rw-r--r-- | debug.c | 8 | 
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@  // SPDX-License-Identifier: BSD-3-Clause-Clear  /*   * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.   */  #include <linux/vmalloc.h> @@ -36,7 +36,7 @@ void ath12k_err(struct ath12k_base *ab, const char *fmt, ...)  	va_end(args);  } -void ath12k_warn(struct ath12k_base *ab, const char *fmt, ...) +void __ath12k_warn(struct device *dev, const char *fmt, ...)  {  	struct va_format vaf = {  		.fmt = fmt, @@ -45,7 +45,7 @@ void ath12k_warn(struct ath12k_base *ab, const char *fmt, ...)  	va_start(args, fmt);  	vaf.va = &args; -	dev_warn_ratelimited(ab->dev, "%pV", &vaf); +	dev_warn_ratelimited(dev, "%pV", &vaf);  	/* TODO: Trace the log */  	va_end(args);  } @@ -64,7 +64,7 @@ void __ath12k_dbg(struct ath12k_base *ab, enum ath12k_debug_mask mask,  	vaf.va = &args;  	if (ath12k_debug_mask & mask) -		dev_dbg(ab->dev, "%pV", &vaf); +		dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf);  	/* TODO: trace log */  | 
