diff options
| author | Ma Jun <[email protected]> | 2023-08-03 01:34:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-09 13:46:05 +0000 |
| commit | cd11589b05b73a00dfec4a817c91f90eca27e905 (patch) | |
| tree | 3bd56024b8d164094d91d23af05c6c5da7ed489f | |
| parent | drm/amdgpu/irq: Move irq resume to the beginning (diff) | |
| download | kernel-cd11589b05b73a00dfec4a817c91f90eca27e905.tar.gz kernel-cd11589b05b73a00dfec4a817c91f90eca27e905.zip | |
drm/buddy: Fix drm buddy info output format
[1] Change pages to blocks to avoid confusion.
[2] Fix output format to align the output info.
Signed-off-by: Ma Jun <[email protected]>
Reviewed-by: Arunpravin Paneer Selvam <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/drm_buddy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_buddy.c b/drivers/gpu/drm/drm_buddy.c index 7098f125b54a..e6f5ba5f4baf 100644 --- a/drivers/gpu/drm/drm_buddy.c +++ b/drivers/gpu/drm/drm_buddy.c @@ -781,15 +781,15 @@ void drm_buddy_print(struct drm_buddy *mm, struct drm_printer *p) count++; } - drm_printf(p, "order-%d ", order); + drm_printf(p, "order-%2d ", order); free = count * (mm->chunk_size << order); if (free < SZ_1M) - drm_printf(p, "free: %lluKiB", free >> 10); + drm_printf(p, "free: %8llu KiB", free >> 10); else - drm_printf(p, "free: %lluMiB", free >> 20); + drm_printf(p, "free: %8llu MiB", free >> 20); - drm_printf(p, ", pages: %llu\n", count); + drm_printf(p, ", blocks: %llu\n", count); } } EXPORT_SYMBOL(drm_buddy_print); |
