diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/log.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h index 26738993..f42fbedc 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/log.h +++ b/drivers/gpu/nvgpu/include/nvgpu/log.h | |||
@@ -118,6 +118,18 @@ int nvgpu_log_mask_enabled(struct gk20a *g, u32 log_mask); | |||
118 | #define nvgpu_warn(g, fmt, arg...) \ | 118 | #define nvgpu_warn(g, fmt, arg...) \ |
119 | __nvgpu_log_msg(g, __func__, __LINE__, WARNING, fmt, ##arg) | 119 | __nvgpu_log_msg(g, __func__, __LINE__, WARNING, fmt, ##arg) |
120 | 120 | ||
121 | /** | ||
122 | * nvgpu_info - Print an info message | ||
123 | * | ||
124 | * @g - The GPU. | ||
125 | * @fmt - A format string (printf style). | ||
126 | * @arg... - Arguments for the format string. | ||
127 | * | ||
128 | * Unconditionally print an information message. | ||
129 | */ | ||
130 | #define nvgpu_info(g, fmt, arg...) \ | ||
131 | __nvgpu_log_msg(g, __func__, __LINE__, DEBUG, fmt, ##arg) | ||
132 | |||
121 | /* | 133 | /* |
122 | * Some convenience macros. | 134 | * Some convenience macros. |
123 | */ | 135 | */ |