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 <quic_fpanwala@quicinc.com>
This commit is contained in:
Fenil Panwala
2024-03-07 13:43:23 +05:30
parent e9c3b19682
commit 530a5bce79

View File

@ -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 <linux/slab.h>
@ -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;
}