Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet authored and kawakami-k committed Dec 18, 2023
1 parent fac458a commit f43f7e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util_impl_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,14 @@ class CpuInfoLinux : public CpuInfo {

FILE *file = fopen(path_midr_el1, "r");
if (file == nullptr) {
// sysfs is unaccessible for AWS Lambdas
fprintf(stderr, "%s, %d: Can't open MIDR_EL1 sysfs entry\n", __FILE__, __LINE__);
// sysfs is unaccessible for AWS Lambdas
fprintf(stderr, "%s, %d: Can't open MIDR_EL1 sysfs entry\n", __FILE__, __LINE__);
cacheInfo_.midr_el1 = 0xFF << 24;
return;
}

if (fread(buf, sizeof(char), 64, file) == 0) {
// File can be empty if invoked inside docker container
// File can be empty if invoked inside docker container
fprintf(stderr, "%s, %d: Can't read MIDR_EL1 sysfs entry\n", __FILE__, __LINE__);
cacheInfo_.midr_el1 = 0xFF << 24;
return;
Expand Down

0 comments on commit f43f7e8

Please sign in to comment.