diff options
author | Christian König <christian.koenig@amd.com> | 2016-02-15 13:01:23 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-16 23:43:16 +0100 |
commit | de0549008ae79bce70808d2955c782b8632e35ed (patch) | |
tree | dd8b6eb77057696c9742fc527b83202c8bd4beaf /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | drm/amdgpu: print pid as integer (diff) | |
download | linux-de0549008ae79bce70808d2955c782b8632e35ed.tar.xz linux-de0549008ae79bce70808d2955c782b8632e35ed.zip |
drm/amdgpu: print the BO size only once in amdgpu_gem_info
Splitting it into KB/MB is just confusing.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 8689e4a81783..e6fb7ded5a66 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -720,9 +720,8 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data) placement = " CPU"; break; } - seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8d\n", - i, amdgpu_bo_size(rbo) >> 10, amdgpu_bo_size(rbo) >> 20, - placement, rbo->pid); + seq_printf(m, "bo[0x%08x] %12ld %s pid %8d\n", + i, amdgpu_bo_size(rbo), placement, rbo->pid); i++; } mutex_unlock(&adev->gem.mutex); |