xlat: introduce XLAT_STYLE_FMT_D
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 4 Apr 2018 11:24:54 +0000 (13:24 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 12 Apr 2018 23:00:10 +0000 (01:00 +0200)
commit78be7e9d8a100d9ab4e52e456e70bdf372cf881c
tree563d363282156e5416279457e8284f04b7db8c7b
parentd451b0e283f713a34f40a9ae248f6744c00c2043
xlat: introduce XLAT_STYLE_FMT_D

As there are some possible users for it, apparently.

* defs.h (XLAT_STYLE_FORMAT_MASK): Update the value in order to
accommodate XLAT_STYLE_FMT_D.
(enum xlat_style) <XLAT_STYLE_FMT_D>: New enumeration entity.
(printxval64_d, printxval_d): New function, a shorthand for
printxvals_ex with a single xlat and XLAT_STYLE_FMT_D xlat style.
* xlat.c (sprint_xlat_val): Handle XLAT_STYLE_FMT_D.
defs.h
xlat.c