summaryrefslogtreecommitdiffstats
path: root/sbin/kldstat
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-12-04 13:36:22 +0000
committermarcel <marcel@FreeBSD.org>1999-12-04 13:36:22 +0000
commite6035644113e5e89248f5475a5e85a1466f8449f (patch)
tree805cf44368e30c016382280319ffd628c59ba64e /sbin/kldstat
parent8931340216fd9bad1f05c57772c36646b58f41b8 (diff)
downloadFreeBSD-src-e6035644113e5e89248f5475a5e85a1466f8449f.zip
FreeBSD-src-e6035644113e5e89248f5475a5e85a1466f8449f.tar.gz
Properly align the columns of the header on Alpha.
Diffstat (limited to 'sbin/kldstat')
-rw-r--r--sbin/kldstat/kldstat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index 945f442..58c5388 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
OpenPOWER on IntegriCloud