summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-06-27 07:25:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-29 16:30:11 -0400
commitce7574d39b2201c1ca14073c5691b72254ad2526 (patch)
tree21a1619038bde85ce76bc3185761242228f484d9 /drivers/gpu/nvgpu/common
parente648ea1e0b659df19a8dd2fe3407cee311b8cf87 (diff)
gpu: nvgpu: use correct log type print in ftrace
Supply the log type argument as text from the table as the log format string specifies for trace_printk. Change-Id: I9e0f2dd8bffeeb0f8cbdba95d9969403d7161474 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master/r/1509334 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/log.c b/drivers/gpu/nvgpu/common/linux/log.c
index 959acfcb..bb1e5f63 100644
--- a/drivers/gpu/nvgpu/common/linux/log.c
+++ b/drivers/gpu/nvgpu/common/linux/log.c
@@ -60,7 +60,9 @@ static void __nvgpu_trace_printk_log(u32 trace, const char *gpu_name,
60 const char *func_name, int line, 60 const char *func_name, int line,
61 enum nvgpu_log_type type, const char *log) 61 enum nvgpu_log_type type, const char *log)
62{ 62{
63 trace_printk(LOG_FMT, gpu_name, func_name, line, type, log); 63 const char *log_type = log_types[type];
64
65 trace_printk(LOG_FMT, gpu_name, func_name, line, log_type, log);
64} 66}
65#endif 67#endif
66 68