summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/diskstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/diskstat.c b/util/diskstat.c
index b1c7b100..370c1a7b 100644
--- a/util/diskstat.c
+++ b/util/diskstat.c
@@ -583,7 +583,7 @@ phdr(int signo)
cur.dinfo->devices[di].device_name,
cur.dinfo->devices[di].unit_number);
else
- printf("%6s%d",
+ printf(cur.dinfo->devices[di].unit_number < 10 ? "%6s%d" : "%5s%2d",
cur.dinfo->devices[di].device_name,
cur.dinfo->devices[di].unit_number);
printed++;