Skip to content

thd_gddv: fix building on 32-bit systems - #596

Closed
lumag wants to merge 1 commit into
intel:masterfrom
lumag:fix-arm32
Closed

lumag wants to merge 1 commit into
intel:masterfrom
lumag:fix-arm32

Conversation

@lumag

@lumag lumag commented Aug 25, 2026

Copy link
Copy Markdown

Fix the error caused by type mismatch:

src/thd_gddv.cpp: In member function 'int cthd_gddv::evaluate_condition(condition&)':
src/thd_gddv.cpp:1721:39: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]

Fix the error caused by type mismatch:

src/thd_gddv.cpp: In member function 'int cthd_gddv::evaluate_condition(condition&)':
src/thd_gddv.cpp:1721:39: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

Copilot AI 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.

Pull request overview

Fixes a build failure on 32-bit systems by correcting a printf-style format/type mismatch when logging a time_t value in the GDDV condition evaluation path.

Changes:

  • Update thd_log_debug format specifier from %ld to %jd and cast state_entry_time to intmax_t to satisfy format checking and avoid 32-bit time_t mismatches.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@spandruvada

Copy link
Copy Markdown
Contributor

Applied to thermald_next.

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