Skip to content

Commit

Permalink
Merge pull request #1858 from fuchencong/bugfix_cpuinfo_log
Browse files Browse the repository at this point in the history
bugfix: filename wrong in error log when get cpuinfo
  • Loading branch information
lianglli authored Sep 7, 2023
2 parents 8e9a33e + 9c7ba3b commit 0cbe1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/unix/ngx_sysinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ ngx_getcpuinfo(ngx_str_t *cpunumber, ngx_cpuinfo_t *cpuinfo, ngx_log_t *log)
if (fd == NGX_INVALID_FILE) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
ngx_open_file_n " \"%s\" failed",
NGX_MEMINFO_FILE);
NGX_CPUINFO_FILE);

return NGX_ERROR;
}
Expand All @@ -286,7 +286,7 @@ ngx_getcpuinfo(ngx_str_t *cpunumber, ngx_cpuinfo_t *cpuinfo, ngx_log_t *log)
if (n == NGX_ERROR) {
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
ngx_read_file_n " \"%s\" failed",
NGX_MEMINFO_FILE);
NGX_CPUINFO_FILE);

return NGX_ERROR;
}
Expand Down

0 comments on commit 0cbe1a0

Please sign in to comment.