drm/i915: Print debugfs object list sizes in kiB instead of bytes.
Subsystems (2)
PATCH 1/1 drm/i915: Print debugfs object list sizes in kiB instead of bytes.
They're all in increments of pages, so this just makes it easier on the eyes.
---
for drm-intel-next
drivers/gpu/drm/i915/i915_debugfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +2 -2
@@ -121,11 +121,11 @@ static const char *cache_level_str(int type)static void describe_obj (struct seq_file *m,struct drm_i915_gem_object *obj) { - seq_printf(m, "%p: %s%s %8zd %04x %04x %d %d%s%s%s", + seq_printf(m, "%p: %s%s %8zdKB %04x %04x %d %d%s%s%s", &obj->base, get_pin_flag(obj), get_tiling_flag(obj), - obj->base.size, + obj->base.size / 1024, obj->base.read_domains, obj->base.write_domain, obj->last_rendering_seqno,
Signature · 1 line
1.7.7.3
drivers/gpu/drm/i915/i915_debugfs.c static const char *cache_level_str(int type) · line 128
Quoted 7 lines · Eric Anholt
drivers/gpu/drm/i915/i915_debugfs.c +2
-2- seq_printf(m, "%p: %s%s %8zd %04x %04x %d %d%s%s%s", + seq_printf(m, "%p: %s%s %8zdKB %04x %04x %d %d%s%s%s", &obj->base, get_pin_flag(obj), get_tiling_flag(obj), - obj->base.size, + obj->base.size / 1024,
In both the seq_printf, and the subject line, you have different misspellings of 'KiB'.
Signature · 1 line
dwmw2
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · David Woodhouse
In both the
seq_printf, and the subject line, you have different misspellings of 'KiB'.
I fixed the misspellings and merged this to my drm-intel-next-fixes pending branch.
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx