File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 88\*-------------------------------------------------------------------*/
99
1010#include " dmiinfo.h"
11+ #include " LogManager.h"
1112
1213#ifdef WIN32
1314#include " wmi.h"
@@ -35,6 +36,7 @@ DMIInfo::DMIInfo()
3536
3637 if (hres)
3738 {
39+ LOG_DEBUG (" [DMI Info] Unable to read from %s" , WMI);
3840 return ;
3941 }
4042
@@ -62,7 +64,10 @@ DMIInfo::DMIInfo()
6264 manufacturer = " " ;
6365
6466 if ((access (SYSFSDMI " /board_vendor" , R_OK)!=0 ) && (access (SYSFSDMI " /board_name" , R_OK)!=0 ))
67+ {
68+ LOG_DEBUG (" [DMI Info] Unable to read from %s" , SYSFSDMI);
6569 return ;
70+ }
6671
6772 std::ifstream mftr (SYSFSDMI " /board_vendor" , std::ifstream::in);
6873 getline (mftr, manufacturer);
Original file line number Diff line number Diff line change 1414
1515#ifdef WIN32
1616#include " wmi.h"
17+
18+ #define WMI " WMI"
1719#else
1820#include < unistd.h> // Linux specific filesystem operation
1921#include < fstream>
You can’t perform that action at this time.
0 commit comments