> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of David Hunt > + TEST_POWER_SYSFILE_SCALING_FREQ, lcore_id) < 0) { > return 0; [Reshma]: Do we need to return -1 here and in other failure scenarios below. > } > f = fopen(fullpath, "r"); > if (f == NULL) { > - return 0; > + if (snprintf(fullpath, sizeof(fullpath), > + TEST_POWER_SYSFILE_CPUINFO_FREQ, lcore_id) < 0) { > + return 0; > + } > + f = fopen(fullpath, "r"); > + if (f == NULL) { > + return 0; > + } > } > for (i = 0; i < MAX_LOOP; i++) { > fflush(f); > -- > 2.17.1
- [dpdk-dev] [PATCH v1 1/4] test/power: fix check for cpu f... David Hunt
- [dpdk-dev] [PATCH v1 3/4] test/power: fix low freq t... David Hunt
- [dpdk-dev] [PATCH v1 2/4] test/power: add turbo mode... David Hunt
- Re: [dpdk-dev] [PATCH v1 2/4] test/power: add tu... Burakov, Anatoly
- Re: [dpdk-dev] [dpdk-stable] [PATCH v1 2/4] ... Thomas Monjalon
- Re: [dpdk-dev] [dpdk-stable] [PATCH v1 2... David Hunt
- [dpdk-dev] [PATCH v1 4/4] test/power: fix turbo test David Hunt
- Re: [dpdk-dev] [PATCH v1 1/4] test/power: fix check ... Pattan, Reshma
- Re: [dpdk-dev] [dpdk-stable] [PATCH v1 1/4] test... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v1 1/4] test/power: fix ch... David Hunt
- Re: [dpdk-dev] [PATCH v1 1/4] test/power: fi... Pattan, Reshma
- [dpdk-dev] [PATCH v2 1/4] test/power: fix check for ... David Hunt
- [dpdk-dev] [PATCH v2 2/4] test/power: add turbo ... David Hunt
- [dpdk-dev] [PATCH v2 3/4] test/power: fix low fr... David Hunt
- [dpdk-dev] [PATCH v2 4/4] test/power: fix turbo ... David Hunt
- Re: [dpdk-dev] [dpdk-stable] [PATCH v2 4/4] ... Thomas Monjalon