mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
drm/drm_print: correct format problem
[ Upstream commit d987150b53
]
[why & how]
__drm_dbg() parameter set format is wrong and not aligned with the
format under CONFIG_DRM_USE_DYNAMIC_DEBUG is on. Fix it.
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
20eda27847
commit
d099b0f127
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ __printf(1, 2)
|
|||
void __drm_err(const char *format, ...);
|
||||
|
||||
#if !defined(CONFIG_DRM_USE_DYNAMIC_DEBUG)
|
||||
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
|
||||
#define __drm_dbg(cat, fmt, ...) ___drm_dbg(NULL, cat, fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
#define __drm_dbg(cat, fmt, ...) \
|
||||
_dynamic_func_call_cls(cat, fmt, ___drm_dbg, \
|
||||
|
|
Loading…
Reference in a new issue