Skip to content

Conversation

@liutgnu
Copy link
Contributor

@liutgnu liutgnu commented Mar 7, 2025

Commit da75aae ("conver strncmp to g_str_has_prefix") introduced an error which reversed the string existence checking condition.

Before that commit, the check condition is:
(strncmp(name, "Level", len) == 0 || strncmp(name, "Edge", len) == 0)

After that commit, the check condition is equal to:
(strncmp(name, "Level", len) != 0 || strncmp(name, "Edge", len) != 0)

This is unexpected and let's fixe this error.

Commit da75aae ("conver strncmp to g_str_has_prefix") introduced an error
which reversed the string existence checking condition.

Before that commit, the check condition is:
  (strncmp(name, "Level", len) == 0 || strncmp(name, "Edge", len) == 0)

After that commit, the check condition is equal to:
  (strncmp(name, "Level", len) != 0 || strncmp(name, "Edge", len) != 0)

This is unexpected and let's fixe this error.

Signed-off-by: Tao Liu <[email protected]>
@nhorman nhorman merged commit be5e3b8 into Irqbalance:master Mar 7, 2025
10 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.

2 participants