Re: [PATCH] sensors-detect : PCI bus is always required even if it might be missing on some platforms

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

 



Sorry. It wasn't the mailer, it was my brain :]

It should be attached now ...

BR, J.

----- Original Message -----
From: "Guenter Roeck" <guenter.roeck@xxxxxxxxxxxx>
To: "Jaromir Capik" <jcapik@xxxxxxxxxx>
Cc: lm-sensors@xxxxxxxxxxxxxx
Sent: Tuesday, March 27, 2012 5:47:19 PM
Subject: Re:  [PATCH] sensors-detect : PCI bus is always required even if it might be missing on some platforms

On Tue, 2012-03-27 at 11:19 -0400, Jaromir Capik wrote:
> Hello guys.
> 
> I was trying to autodetect sensors on my ARM based device (PandaBoard).
> This board doesn't have a PCI bus, but the sensors-detect script
> always expect one and then fails with the following message:
> 
> /sys/bus/pci/devices: No such file or directory at ./sensors-detect.bak line 2895.
> 
> The attached patch should avoid dying and returns empty PCI device list instead.
> 
Did you send it as attachment ? If so, the mailer might have removed it.

Please re-send, but not as attachment.

Thanks,
Guenter


Index: prog/detect/sensors-detect
===================================================================
--- prog/detect/sensors-detect	(revision 6037)
+++ prog/detect/sensors-detect	(working copy)
@@ -2996,7 +2996,7 @@
 	my ($dev, @pci_list);
 
 	opendir(local *DEVICES, "$devices")
-		or die "$devices: $!";
+		or return \@pci_list;
 
 	while (defined($dev = readdir(DEVICES))) {
 		my %record;
_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux