mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Fix MISRA 21.2 violations in log.h
MISRA 21.2 prohibits naming functions with double underscore. So, rename __nvgpu_log_dbg() and __nvgpu_log_msg() to nvgpu_log_dbg_impl() and nvgpu_log_msg_impl(), respectively. JIRA NVGPU-3368 Change-Id: I4548820f6772875088d095539b6da92051e08653 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2118043 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
050e4f0f5b
commit
1e95144194
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -98,8 +98,8 @@ static void __nvgpu_really_print_log(u32 trace, const char *gpu_name,
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 5, 6)))
|
||||
void __nvgpu_log_msg(struct gk20a *g, const char *func_name, int line,
|
||||
enum nvgpu_log_type type, const char *fmt, ...)
|
||||
void nvgpu_log_msg_impl(struct gk20a *g, const char *func_name, int line,
|
||||
enum nvgpu_log_type type, const char *fmt, ...)
|
||||
{
|
||||
char log[LOG_BUFFER_LENGTH];
|
||||
va_list args;
|
||||
@@ -113,9 +113,9 @@ void __nvgpu_log_msg(struct gk20a *g, const char *func_name, int line,
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 5, 6)))
|
||||
void __nvgpu_log_dbg(struct gk20a *g, u64 log_mask,
|
||||
const char *func_name, int line,
|
||||
const char *fmt, ...)
|
||||
void nvgpu_log_dbg_impl(struct gk20a *g, u64 log_mask,
|
||||
const char *func_name, int line,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
char log[LOG_BUFFER_LENGTH];
|
||||
va_list args;
|
||||
|
||||
Reference in New Issue
Block a user