From 970adfa7efd0cb78576468cab7501b9ced8a7984 Mon Sep 17 00:00:00 2001 From: Dan Nica Date: Wed, 5 Aug 2020 14:12:34 +0300 Subject: [PATCH] pci: Fix ambiguous behaviour of the "pci" command The "pci" command may or may not re-enumerate the bus depending on a build time option. Add printf() calls to inform the user about whether or not the bus is being re-enumerated. Issue: ALB-1121 Signed-off-by: Dan Nica --- cmd/pci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/pci.c b/cmd/pci.c index 0043471..0651ef1 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -333,6 +333,8 @@ static void pciinfo(struct udevice *bus, bool short_listing) { struct udevice *dev; + printf("Showing already found devices. Not re-enumerating the bus.\n"); + pciinfo_header(bus->seq, short_listing); for (device_find_first_child(bus, &dev); @@ -397,6 +399,8 @@ void pciinfo(int bus_num, int short_pci_listing) pci_dev_t dev; int ret; + printf("Re-enumerating the bus.\n"); + if (!hose) return; -- 1.9.1