gbm: Introduce a helper function for printing GBM format names.
authorEric Anholt <eric@anholt.net>
Fri, 2 Nov 2018 21:35:06 +0000 (14:35 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 12 Nov 2018 23:20:23 +0000 (15:20 -0800)
commit6328536ff28ca26f2ad4e6f2c956c467acebda88
tree118c06fa9d1914f808d99a9c7995896df95c8b91
parentee7f848c000112a98e9614f42921b176be473792
gbm: Introduce a helper function for printing GBM format names.

This requires that the caller make a little (stack) allocation to store
the string.

v2: Use gbm_format_canonicalize (suggested by Daniel)

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/gbm/main/gbm.c
src/gbm/main/gbm.h