Skip to content

Commit

Permalink
bugfix: filename wrong in error log when get cpuinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchencong committed Sep 7, 2023
1 parent 8e9a33e commit 9c7ba3b
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 9c7ba3b

Please sign in to comment.