Tested-by:ma,Lihong<[email protected]> Regards, Ma,lihong
-----Original Message----- From: dev <[email protected]> On Behalf Of Anatoly Burakov Sent: Tuesday, July 14, 2020 6:30 PM To: [email protected] Cc: Hunt, David <[email protected]>; Pattan, Reshma <[email protected]>; Richardson, Bruce <[email protected]> Subject: [dpdk-dev] [PATCH v3 1/2] power: fix power management env detection Anything coming from sysfs has a newline at the end. Cut it off before comparing the strings. Fixes: 20ab67608a39 ("power: add environment capability probing") Signed-off-by: Anatoly Burakov <[email protected]> Acked-by: David Hunt <[email protected]> --- Notes: v3: - Check if last character is really a newline before removing it v2: - Fix potential integer underflow lib/librte_power/power_common.c | 8 ++++++++ 1 file changed, 8 insertions(+)

