Skip to content

Fix Syslog Dismiss Problem#92

Merged
ForeverYolo merged 1 commit into
mainfrom
Orin
May 19, 2026
Merged

Fix Syslog Dismiss Problem#92
ForeverYolo merged 1 commit into
mainfrom
Orin

Conversation

@ForeverYolo

Copy link
Copy Markdown
Contributor

The built-in macro definitions in syslog.h override the output level definitions inside hvisor-tool.
his commit bypasses this issue by determining the values earlier in the Makefile.

Copilot AI review requested due to automatic review settings May 19, 2026 11:15
@ForeverYolo ForeverYolo self-assigned this May 19, 2026
@ForeverYolo ForeverYolo requested a review from agicy May 19, 2026 11:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an interaction between <syslog.h> macro definitions (e.g., LOG_DEBUG, LOG_INFO) and the tool’s compile-time log-level selection by converting the LOG=... Make variable into a numeric HLOG value in the build system, avoiding macro substitution at compile time.

Changes:

  • Add a Makefile mapping from LOG_{TRACE,DEBUG,INFO,WARN,ERROR,FATAL} to numeric levels 0..5.
  • Pass the numeric level via -DHLOG=$(HLOG_LEVEL) instead of -DHLOG=$(LOG).
  • Fail fast with a clear Makefile error if LOG is not one of the supported values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agicy agicy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ForeverYolo ForeverYolo merged commit ef38562 into main May 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants