Index: chrome/gpu/gpu_info_collector_linux.cc |
=================================================================== |
--- chrome/gpu/gpu_info_collector_linux.cc (revision 74622) |
+++ chrome/gpu/gpu_info_collector_linux.cc (working copy) |
@@ -83,7 +83,7 @@ |
PciInterface* InitializeLibPci(const char* lib_name) { |
void* handle = dlopen(lib_name, RTLD_LAZY); |
if (handle == NULL) { |
- LOG(ERROR) << "Fail to dlopen libpci"; |
+ LOG(ERROR) << "Fail to dlopen " << lib_name; |
Ken Russell (switch to Gerrit)
2011/03/01 01:38:42
Fail -> Failed. Also, reconsider whether to print
|
return NULL; |
} |
PciInterface* interface = new struct PciInterface; |
@@ -143,6 +143,8 @@ |
// TODO(zmo): be more flexible about library name. |
PciInterface* interface = InitializeLibPci("libpci.so.3"); |
if (interface == NULL) |
+ interface = InitializeLibPci("libpci.so"); |
+ if (interface == NULL) |
return false; |
PciAccess* access = (interface->pci_alloc)(); |