Tested-by:ma,Lihong<lihongx...@intel.com> Regards, Ma,lihong
-----Original Message----- From: dev <dev-boun...@dpdk.org> On Behalf Of Anatoly Burakov Sent: Tuesday, July 14, 2020 6:30 PM To: dev@dpdk.org Cc: Hunt, David <david.h...@intel.com>; Pattan, Reshma <reshma.pat...@intel.com>; Richardson, Bruce <bruce.richard...@intel.com> 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 <anatoly.bura...@intel.com> Acked-by: David Hunt <david.h...@intel.com> --- 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(+)