~emersion/drmdb

8f352246601551e3bad1cf2d06ab2358d94997da — Simon Ser 2 years ago dd8a22d
drmtree: slightly improve modifier pretty-printing
1 files changed, 5 insertions(+), 1 deletions(-)

M drmtree/drmtree.go
M drmtree/drmtree.go => drmtree/drmtree.go +5 -1
@@ 422,7 422,11 @@ func (m *PropertyMap) FormatTree(tf treefmt.Formatter) {
			tf.Printf("%v", s)
			tfc := tf.NewChild()
			for _, mod := range val {
				tfc.Printf("unknown modifier (0x%X)", mod.Modifier)
				if mod.Modifier == 0 {
					tfc.Printf("DRM_FORMAT_MOD_LINEAR")
				} else {
					tfc.Printf("%v modifier (0x%X)", mod.Modifier.Vendor(), mod.Modifier)
				}
				tfcc := tfc.NewChild()
				for _, fmt := range mod.Formats {
					tfcc.Printf("%v", fmt)