lib/igt_debugfs: Prevent compiler warning on unchecked printf format

Commit 34a54192e1fb ("lib/igt_debugfs: Add extended helper to format
crc to string") introduced the following compiler warning:

  igt_debugfs.c: In function ‘igt_crc_to_string_extended’:
  igt_debugfs.c:373:4: warning: format not a string literal, argument
  types not checked [-Wformat-nonliteral]
      i == (crc->n_words - 1) ? '\0' : delimiter);

This patch addresses the warning while also preventing a possible bad
memory access access if n_words is > 64.  I have no clue why we
care about the padding size (crc_size), but since this was added
recently, I'd rather leave it alone.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
1 file changed