mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 12:11:02 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user