From 82105ff74f9db46a21a33f8827934be6dcec4835 Mon Sep 17 00:00:00 2001 From: hubertf Date: Thu, 8 Feb 2007 23:27:07 +0000 Subject: [PATCH] Make the output of 'list -n' aligned by always printing 8 hex digits. Suggested by Nicolas Joly in private mail. --- usr.sbin/pcictl/pcictl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pcictl/pcictl.c b/usr.sbin/pcictl/pcictl.c index ca3926e9db31..1632a8c95d66 100644 --- a/usr.sbin/pcictl/pcictl.c +++ b/usr.sbin/pcictl/pcictl.c @@ -1,4 +1,4 @@ -/* $NetBSD: pcictl.c,v 1.10 2006/10/01 00:13:28 hubertf Exp $ */ +/* $NetBSD: pcictl.c,v 1.11 2007/02/08 23:27:07 hubertf Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -322,7 +322,7 @@ scan_pci_list(u_int bus, u_int dev, u_int func) printf("%03u:%02u:%01u: ", bus, dev, func); if (print_numbers) { - printf("0x%x (0x%x)\n", id, class); + printf("0x%08x (0x%08x)\n", id, class); } else { pci_devinfo(id, class, 1, devinfo, sizeof(devinfo)); printf("%s\n", devinfo);