Skip to content

Commit cd11589

Browse files
Ma Junalexdeucher
authored andcommitted
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]>
1 parent f734b21 commit cd11589

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/drm_buddy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,15 +781,15 @@ void drm_buddy_print(struct drm_buddy *mm, struct drm_printer *p)
781781
count++;
782782
}
783783

784-
drm_printf(p, "order-%d ", order);
784+
drm_printf(p, "order-%2d ", order);
785785

786786
free = count * (mm->chunk_size << order);
787787
if (free < SZ_1M)
788-
drm_printf(p, "free: %lluKiB", free >> 10);
788+
drm_printf(p, "free: %8llu KiB", free >> 10);
789789
else
790-
drm_printf(p, "free: %lluMiB", free >> 20);
790+
drm_printf(p, "free: %8llu MiB", free >> 20);
791791

792-
drm_printf(p, ", pages: %llu\n", count);
792+
drm_printf(p, ", blocks: %llu\n", count);
793793
}
794794
}
795795
EXPORT_SYMBOL(drm_buddy_print);

0 commit comments

Comments
 (0)