[Intel-gfx] [PATCH RESEND 6/8] drm/print: convert debug category macros into an enum

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Oct 29 09:02:32 UTC 2019


Quoting Jani Nikula (2019-10-28 12:38:20)
> Mostly for improved documentation, convert the debug category macros
> into an enum. Drop unused DRM_UT_NONE. Document previously undocumented
> categories.
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

<SNIP>

> +enum drm_debug_category {
> +       /**
> +        * @DRM_UT_CORE: Used in the generic drm code: drm_ioctl.c, drm_mm.c,
> +        * drm_memory.c, ...
> +        */
> +       DRM_UT_CORE             = 0x01,

While here, why not BIT()

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas


More information about the dri-devel mailing list