[PATCH] lspci: fix printing label in terse+kernel mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In commit ef6c9ec3a45992d9e7ef4716d444252baf2013e1 pci_fill_info() calls were moved,
but printing label in terse mode with opt_kernel was skipped.
Before this patch lspci -k never prints 'DeviceName'.

Signed-off-by: Viktor Prutyanov <viktor.prutyanov@xxxxxxxxxxxxx>
---
 lspci.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lspci.c b/lspci.c
index 6b93d9c..1f1e20c 100644
--- a/lspci.c
+++ b/lspci.c
@@ -322,6 +322,9 @@ show_terse(struct device *d)
     }
   putchar('\n');
 
+  if (opt_kernel)
+    pci_fill_info(p, PCI_FILL_LABEL);
+
   if (verbose || opt_kernel)
     {
       word subsys_v, subsys_d;
-- 
2.7.4




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux