diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-12-04 13:36:22 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-12-04 13:36:22 +0000 |
commit | fb2ef615130ba89ca9c8ec78f835299044bc993b (patch) | |
tree | b587e164072c3bbe2cbfb83864286aa061adf923 /sbin | |
parent | aa4df56dc607b3598a93d69a4aee5d69b3dd2b26 (diff) | |
download | src-fb2ef615130ba89ca9c8ec78f835299044bc993b.tar.gz src-fb2ef615130ba89ca9c8ec78f835299044bc993b.zip |
Properly align the columns of the header on Alpha.
Notes
Notes:
svn path=/head/; revision=54130
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/kldstat/kldstat.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 945f442df15a..58c5388e5312 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -38,6 +38,12 @@ static const char rcsid[] = #include <sys/module.h> #include <sys/linker.h> +#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 |