drm/i915: Reduce ELD hex dumps a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Feb 2023 15:01:29 +0000 (17:01 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Feb 2023 20:10:02 +0000 (22:10 +0200)
commit46b3c0f683d6a2128f7f2bf236bcdc62caec5c83
tree03b66603786d146858a3b9b50cd6e0ecd0b33a56
parent8eb2e3b47e3564d2ed49d3fbea5f472950ef98b7
drm/i915: Reduce ELD hex dumps a bit

Do the ELD hexdumps only up to the last differing byte.
The rest is typically all zeroes anyway so not much point
in dumping it.

Couldn't find anything for memcmp_diff_len() so
rolled my own.

v2: Use semantics and function name suggested by Jani

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215150129.13288-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.c