From fb2ef615130ba89ca9c8ec78f835299044bc993b Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 4 Dec 1999 13:36:22 +0000 Subject: [PATCH] Properly align the columns of the header on Alpha. --- sbin/kldstat/kldstat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 945f442df15..58c5388e531 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -38,6 +38,12 @@ static const char rcsid[] = #include #include +#if defined(__alpha__) +#define POINTER_WIDTH 18 +#else +#define POINTER_WIDTH 10 +#endif + static void printmod(int modid) { @@ -111,7 +117,7 @@ main(int argc, char** argv) err(1, "can't find file %s", filename); } - printf("Id Refs Address Size Name\n"); + printf("Id Refs Address%*c Size Name\n", POINTER_WIDTH - 7, ' '); if (fileid) printfile(fileid, verbose); else