Commit 5132681
tools/power turbostat: Fix names matching
Fix the 'find_msrp_by_name()' function which returns incorrect matches for
cases like this:
s1 = "C1-";
find_msrp_by_name(head, s1);
Inside 'find_msrp_by_name()':
...
s2 = "C1"
if !(strcnmp(s1, s2, len(s2)))
// Incorrect match!
return mp;
Full strings should be match istead. Switch to 'strcmp()' to fix the problem.
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Len Brown <[email protected]>1 parent b312d88 commit 5132681
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9612 | 9612 | | |
9613 | 9613 | | |
9614 | 9614 | | |
9615 | | - | |
| 9615 | + | |
9616 | 9616 | | |
9617 | 9617 | | |
9618 | 9618 | | |
| |||
0 commit comments