提交 d987150b 编写于 作者: W Wayne Lin 提交者: Alex Deucher

drm/drm_print: correct format problem

[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: NWayne Lin <Wayne.Lin@amd.com>
Signed-off-by: NHarry Wentland <harry.wentland@amd.com>
Acked-by: NHarry Wentland <harry.wentland@amd.com>
Reviewed-by: NLyude Paul <lyude@redhat.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 2daeb74b
...@@ -521,7 +521,7 @@ __printf(1, 2) ...@@ -521,7 +521,7 @@ __printf(1, 2)
void __drm_err(const char *format, ...); void __drm_err(const char *format, ...);
#if !defined(CONFIG_DRM_USE_DYNAMIC_DEBUG) #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 #else
#define __drm_dbg(cat, fmt, ...) \ #define __drm_dbg(cat, fmt, ...) \
_dynamic_func_call_cls(cat, fmt, ___drm_dbg, \ _dynamic_func_call_cls(cat, fmt, ___drm_dbg, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册