Skip to contentSkip to conversation

drm/i915: Print debugfs object list sizes in kiB instead of bytes.

PATCH In review Eric Anholt 3 participants 3 messages Dec 20, 2011 – Jan 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 004b048..af7d2ff 100644
@@ -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
#1 lore raw

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