From 530a5bce798b666da7cac8db3e5b26340ea4a102 Mon Sep 17 00:00:00 2001 From: Fenil Panwala Date: Thu, 7 Mar 2024 13:43:23 +0530 Subject: [PATCH] diag: Correct argument list for debug logs Keep number of arguments and format specifiers same in debug logs to avoid segmentation fault. Change-Id: I8c1435639a7485406a8b96c8d79276c430979ddc Signed-off-by: Fenil Panwala --- drivers/char/diag/diagchar_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/char/diag/diagchar_core.c b/drivers/char/diag/diagchar_core.c index c547351098ae..1bbcadd3a8ca 100644 --- a/drivers/char/diag/diagchar_core.c +++ b/drivers/char/diag/diagchar_core.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2008-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -3868,7 +3869,7 @@ static ssize_t diagchar_read(struct file *file, char __user *buf, size_t count, DIAG_LOG(DIAG_DEBUG_MASKS, "diag: %s: event masks update complete for client pid: %d\n", - current->tgid); + __func__, current->tgid); goto exit; }