Skip to content

Commit 95a77b6

Browse files
jimcgregkh
authored andcommitted
drm-print: add drm_dbg_driver to improve namespace symmetry
drm_print defines all of these: drm_dbg_{core,kms,prime,atomic,vbl,lease,_dp,_drmres} but not drm_dbg_driver itself, since it was the original drm_dbg. To improve namespace symmetry, change the drm_dbg defn to drm_dbg_driver, and redef grandfathered name to symmetric one. This will help with nouveau, which uses its own stack of macros to construct calls to dev_info, dev_dbg, etc, for which adaptation means drm_dbg_##driver constructs. Signed-off-by: Jim Cromie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ee7d633 commit 95a77b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/drm/drm_print.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void __drm_dev_dbg(const struct device *dev, enum drm_debug_category category,
468468

469469
#define drm_dbg_core(drm, fmt, ...) \
470470
drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_CORE, fmt, ##__VA_ARGS__)
471-
#define drm_dbg(drm, fmt, ...) \
471+
#define drm_dbg_driver(drm, fmt, ...) \
472472
drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
473473
#define drm_dbg_kms(drm, fmt, ...) \
474474
drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_KMS, fmt, ##__VA_ARGS__)
@@ -487,6 +487,7 @@ void __drm_dev_dbg(const struct device *dev, enum drm_debug_category category,
487487
#define drm_dbg_drmres(drm, fmt, ...) \
488488
drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
489489

490+
#define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
490491

491492
/*
492493
* printk based logging

0 commit comments

Comments
 (0)