Re: [Intel-gfx] [PATCH 1/2] drm/i915: Reduce trickery in DEV_INFO_FOR_EACH_FLAG

2016-10-04 Thread Jani Nikula
On Tue, 04 Oct 2016, Joonas Lahtinen wrote: > Get rid of SEP_SEMICOLON and SEP_BLANK in DEV_INFO_FOR_EACH_FLAG. > > Signed-off-by: Joonas Lahtinen > --- > drivers/gpu/drm/i915/i915_debugfs.c | 6 +- >

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Reduce trickery in DEV_INFO_FOR_EACH_FLAG

2016-10-04 Thread Chris Wilson
On Tue, Oct 04, 2016 at 03:42:57PM +0300, Joonas Lahtinen wrote: > #define PRINT_S(name) "%s" > -#define SEP_EMPTY > -#define PRINT_FLAG(name) info->name ? #name "," : "" > -#define SEP_COMMA , > +#define PRINT_FLAG(name) info->name ? #name "," : "", > DRM_DEBUG_DRIVER("i915 device info:

[Intel-gfx] [PATCH 1/2] drm/i915: Reduce trickery in DEV_INFO_FOR_EACH_FLAG

2016-10-04 Thread Joonas Lahtinen
Get rid of SEP_SEMICOLON and SEP_BLANK in DEV_INFO_FOR_EACH_FLAG. Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_debugfs.c | 6 +- drivers/gpu/drm/i915/i915_drv.h | 98 +++-