From ce7574d39b2201c1ca14073c5691b72254ad2526 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 27 Jun 2017 14:25:42 +0300 Subject: 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 Reviewed-on: https://git-master/r/1509334 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/common/linux/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common') 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, const char *func_name, int line, enum nvgpu_log_type type, const char *log) { - trace_printk(LOG_FMT, gpu_name, func_name, line, type, log); + const char *log_type = log_types[type]; + + trace_printk(LOG_FMT, gpu_name, func_name, line, log_type, log); } #endif -- cgit v1.2.2