[PATCH v9 07/22] examples/power: replace use of RTE_LOGTYPE_POWER

Hunt, David david.hunt at intel.com
Wed Feb 22 17:34:04 CET 2023


On 21/02/2023 19:01, Stephen Hemminger wrote:
> Don't use static logtype in sample application.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>   examples/distributor/main.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/examples/distributor/main.c b/examples/distributor/main.c
> index 21304d661873..542f76cf9664 100644
> --- a/examples/distributor/main.c
> +++ b/examples/distributor/main.c
> @@ -679,7 +679,7 @@ init_power_library(void)
>   		/* init power management library */
>   		ret = rte_power_init(lcore_id);
>   		if (ret) {
> -			RTE_LOG(ERR, POWER,
> +			fprintf(stderr,
>   				"Library initialization failed on core %u\n",
>   				lcore_id);
>   			/*


Acked-by: David Hunt <david.hunt at intel.com>




More information about the dev mailing list