diff options
author | Eric Anholt <eric@anholt.net> | 2011-12-20 08:54:15 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-09 14:02:41 -0800 |
commit | a05a586239c66a256ea1fbae859e742e4c91c8d9 (patch) | |
tree | 9906ad5075a5834d14c318c1a08b913ab8b00182 /drivers/gpu | |
parent | ba68e086223a5f149f37bf8692c8cdbf1b0ba3ef (diff) | |
download | blackbird-op-linux-a05a586239c66a256ea1fbae859e742e4c91c8d9.tar.gz blackbird-op-linux-a05a586239c66a256ea1fbae859e742e4c91c8d9.zip |
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.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 11807989f918..f8b8ed22b4dc 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -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 %8zdKiB %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, |