Re: [PATCH v2] drm: tweak drm_print_bits()

2019-09-23 Thread Sean Paul
On Mon, Sep 23, 2019 at 08:58:14AM +0200, Gerd Hoffmann wrote: > There is little reason for the from/to logic, printing a subset of > the bits can be done by simply shifting/masking value if needed. > > Also use for_each_set_bit(). > > Suggested-by: Jani Nikula > Signed-off-by: Gerd Hoffmann >

[PATCH v2] drm: tweak drm_print_bits()

2019-09-22 Thread Gerd Hoffmann
There is little reason for the from/to logic, printing a subset of the bits can be done by simply shifting/masking value if needed. Also use for_each_set_bit(). Suggested-by: Jani Nikula Signed-off-by: Gerd Hoffmann Reviewed-by: Jani Nikula --- include/drm/drm_print.h | 5 ++---