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>
This commit is contained in:
Konsta Holtta
2017-06-27 14:25:42 +03:00
committed by mobile promotions
parent e648ea1e0b
commit ce7574d39b

View File

@@ -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