summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/log.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/log.c b/drivers/gpu/nvgpu/common/linux/log.c
index e2cebee8..f371bb77 100644
--- a/drivers/gpu/nvgpu/common/linux/log.c
+++ b/drivers/gpu/nvgpu/common/linux/log.c
@@ -82,7 +82,7 @@ static void __nvgpu_really_print_log(u32 trace, const char *gpu_name,
82 const char *log_type = log_types[type]; 82 const char *log_type = log_types[type];
83 83
84 switch (type) { 84 switch (type) {
85 case DEBUG: 85 case NVGPU_DEBUG:
86 /* 86 /*
87 * We could use pr_debug() here but we control debug enablement 87 * We could use pr_debug() here but we control debug enablement
88 * separately from the Linux kernel. Perhaps this is a bug in 88 * separately from the Linux kernel. Perhaps this is a bug in
@@ -90,13 +90,13 @@ static void __nvgpu_really_print_log(u32 trace, const char *gpu_name,
90 */ 90 */
91 pr_info(LOG_FMT, name, func_name, line, log_type, log); 91 pr_info(LOG_FMT, name, func_name, line, log_type, log);
92 break; 92 break;
93 case INFO: 93 case NVGPU_INFO:
94 pr_info(LOG_FMT, name, func_name, line, log_type, log); 94 pr_info(LOG_FMT, name, func_name, line, log_type, log);
95 break; 95 break;
96 case WARNING: 96 case NVGPU_WARNING:
97 pr_warn(LOG_FMT, name, func_name, line, log_type, log); 97 pr_warn(LOG_FMT, name, func_name, line, log_type, log);
98 break; 98 break;
99 case ERROR: 99 case NVGPU_ERROR:
100 pr_err(LOG_FMT, name, func_name, line, log_type, log); 100 pr_err(LOG_FMT, name, func_name, line, log_type, log);
101 break; 101 break;
102 } 102 }
@@ -134,5 +134,5 @@ void __nvgpu_log_dbg(struct gk20a *g, u32 log_mask,
134 va_end(args); 134 va_end(args);
135 135
136 __nvgpu_really_print_log(g->log_trace, nvgpu_log_name(g), 136 __nvgpu_really_print_log(g->log_trace, nvgpu_log_name(g),
137 func_name, line, DEBUG, log); 137 func_name, line, NVGPU_DEBUG, log);
138} 138}