[dpdk-dev] [PATCH v3 1/2] power: fix power management env detection
Ma, LihongX
lihongx.ma at intel.com
Wed Jul 15 06:18:58 CEST 2020
Tested-by:ma,Lihong<lihongx.ma at intel.com>
Regards,
Ma,lihong
-----Original Message-----
From: dev <dev-bounces at dpdk.org> On Behalf Of Anatoly Burakov
Sent: Tuesday, July 14, 2020 6:30 PM
To: dev at dpdk.org
Cc: Hunt, David <david.hunt at intel.com>; Pattan, Reshma <reshma.pattan at intel.com>; Richardson, Bruce <bruce.richardson at 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.burakov at intel.com>
Acked-by: David Hunt <david.hunt at 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(+)
More information about the dev
mailing list