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

Message ID 20230221190208.514276-8-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series Convert static logtypes in libraries |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Feb. 21, 2023, 7:01 p.m. UTC
  Don't use static logtype in sample application.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 examples/distributor/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Hunt, David Feb. 22, 2023, 4:34 p.m. UTC | #1
On 21/02/2023 19:01, Stephen Hemminger wrote:
> Don't use static logtype in sample application.
>
> Signed-off-by: Stephen Hemminger <stephen@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@intel.com>
  

Patch

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);
 			/*