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 8
8
\*-------------------------------------------------------------------*/
9
9
10
10
#include " dmiinfo.h"
11
+ #include " LogManager.h"
11
12
12
13
#ifdef WIN32
13
14
#include " wmi.h"
@@ -35,6 +36,7 @@ DMIInfo::DMIInfo()
35
36
36
37
if (hres)
37
38
{
39
+ LOG_DEBUG (" [DMI Info] Unable to read from %s" , WMI);
38
40
return ;
39
41
}
40
42
@@ -62,7 +64,10 @@ DMIInfo::DMIInfo()
62
64
manufacturer = " " ;
63
65
64
66
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);
65
69
return ;
70
+ }
66
71
67
72
std::ifstream mftr (SYSFSDMI " /board_vendor" , std::ifstream::in);
68
73
getline (mftr, manufacturer);
Original file line number Diff line number Diff line change 14
14
15
15
#ifdef WIN32
16
16
#include " wmi.h"
17
+
18
+ #define WMI " WMI"
17
19
#else
18
20
#include < unistd.h> // Linux specific filesystem operation
19
21
#include < fstream>
You can’t perform that action at this time.
0 commit comments