kdump - cleanup cpu-stamp formatting
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 21 Sep 2012 23:07:00 +0000 (16:07 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 21 Sep 2012 23:07:00 +0000 (16:07 -0700)
* %2d instead of %d so columns align.

usr.bin/kdump/kdump.c

index 0a422b0..62e4a97 100644 (file)
@@ -247,7 +247,7 @@ dumpheader(struct ktr_header *kth)
        else
                col = printf("%5d", kth->ktr_pid);
        if (cpustamp)
-               col += printf(" %d", KTRH_CPUID_DECODE(kth->ktr_flags));
+               col += printf(" %2d", KTRH_CPUID_DECODE(kth->ktr_flags));
        col += printf(" %-8.*s ", MAXCOMLEN, kth->ktr_comm);
        if (timestamp) {
                if (timestamp == 2) {