diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-03-28 16:39:30 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-04 02:24:31 -0400 |
commit | a108d3f0368c72f2d553cac1470531677b5a7b88 (patch) | |
tree | 24e252a07dfc4951c60e321e8e44e74a4df7e84f /drivers/gpu/nvgpu/include | |
parent | af65ec26976719547212ae29abc10548cf40b7ac (diff) |
gpu: nvgpu: Use u64 for log mask
BIT() is defined as returning a 64-bit value. We use it to create the
log mask values, but the functions that accept log mask take only
u32 as parameter.
Use u64 as log mask parameter for the logging functions to match the
sizes.
Change-Id: I6f0803a7d04ee6a2ee725b5defc4cc14b5b7acf5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1683818
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/log.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h index 183948cd..897dcfc6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/log.h +++ b/drivers/gpu/nvgpu/include/nvgpu/log.h | |||
@@ -44,7 +44,7 @@ void __nvgpu_log_msg(struct gk20a *g, const char *func_name, int line, | |||
44 | enum nvgpu_log_type type, const char *fmt, ...); | 44 | enum nvgpu_log_type type, const char *fmt, ...); |
45 | 45 | ||
46 | __attribute__((format (printf, 5, 6))) | 46 | __attribute__((format (printf, 5, 6))) |
47 | void __nvgpu_log_dbg(struct gk20a *g, u32 log_mask, | 47 | void __nvgpu_log_dbg(struct gk20a *g, u64 log_mask, |
48 | const char *func_name, int line, | 48 | const char *func_name, int line, |
49 | const char *fmt, ...); | 49 | const char *fmt, ...); |
50 | 50 | ||
@@ -92,7 +92,7 @@ void __nvgpu_log_dbg(struct gk20a *g, u32 log_mask, | |||
92 | * said prints would not happen. For example for-loops of log statements in | 92 | * said prints would not happen. For example for-loops of log statements in |
93 | * critical paths. | 93 | * critical paths. |
94 | */ | 94 | */ |
95 | int nvgpu_log_mask_enabled(struct gk20a *g, u32 log_mask); | 95 | int nvgpu_log_mask_enabled(struct gk20a *g, u64 log_mask); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * nvgpu_log - Print a debug message | 98 | * nvgpu_log - Print a debug message |
@@ -164,7 +164,7 @@ int nvgpu_log_mask_enabled(struct gk20a *g, u32 log_mask); | |||
164 | * This exist for backwards compatibility with the old debug/logging API. If you | 164 | * This exist for backwards compatibility with the old debug/logging API. If you |
165 | * want ftrace support use the new API! | 165 | * want ftrace support use the new API! |
166 | */ | 166 | */ |
167 | extern u32 nvgpu_dbg_mask; | 167 | extern u64 nvgpu_dbg_mask; |
168 | 168 | ||
169 | #define gk20a_dbg(log_mask, fmt, arg...) \ | 169 | #define gk20a_dbg(log_mask, fmt, arg...) \ |
170 | do { \ | 170 | do { \ |