Remove error spam in getGenerationInUse

Cached the linkSpeed that is known to be invalid PCIe type. Only print
the error once to avoid duplicated messages.

Removing the spam to help reduce the noise in the BMC logs.

Tested:
```
systemctl status xyz.openbmc_project.PCIe.service
* xyz.openbmc_project.PCIe.service - Service to get PCIe info over PECI
     Loaded: loaded (/lib/systemd/system/xyz.openbmc_project.PCIe.service; enabled; preset: enabled)
     Active: active (running) since Fri 2018-03-09 15:06:10 UTC; 10min ago
   Main PID: 2382 (peci-pcie)
     CGroup: /system.slice/xyz.openbmc_project.PCIe.service
             `-2382 /usr/bin/peci-pcie

Mar 09 15:06:10 [host] systemd[1]: Started Service to get PCIe info over PECI.
Mar 09 15:06:10 [host] peci-pcie[2382]: PECI set dev names to /dev/peci-default, /dev/peci-0
Mar 09 15:07:20 [host] peci-pcie[2382]: PCIe scan started
Mar 09 15:07:20 [host] peci-pcie[2382]: Link speed : 0 can not mapping to PCIe type list.
Mar 09 15:08:06 [host] peci-pcie[2382]: PCIe scan completed
```

Change-Id: Ie84f3951e80a6c38dd2fdbe853b8e468a249e264
Signed-off-by: Willy Tu <wltu@google.com>
1 file changed
tree: b36db6117dcc34ffa244b74191bfc78bca85e1bb
  1. include/
  2. service_files/
  3. src/
  4. utils/
  5. .clang-format
  6. CMakeLists.txt
  7. LICENSE
  8. OWNERS
  9. README.md
README.md

peci-pcie

The peci-pcie application uses the CPU PECI interface to get PCIe Device information for the system and shares it on D-Bus. The information from D-Bus is used by bmcweb to populate the PCIe Device resources in Redfish.