diff options
| author | Stephen Hemminger <[email protected]> | 2024-07-03 09:28:20 -0700 |
|---|---|---|
| committer | David Marchand <[email protected]> | 2024-07-09 14:24:50 +0200 |
| commit | ec8fb5696c7e0ddc7c1e9821b2dcaa8d8afde74c (patch) | |
| tree | acb01a9c5d4f92ac6c4aa49363febcc937d184ce /examples | |
| parent | 13830b98b2bcf6a8a1aa8edde5132907c053861c (diff) | |
examples/vm_power_manager: remove use of EAL logtype
Be consistent for all the error printouts and use fprintf().
The EAL logtype is reserved for internal use by EAL.
Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: David Hunt <[email protected]>
Acked-by: Huisong Li <[email protected]>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/vm_power_manager/main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index b159291d77..c141382020 100644 --- a/examples/vm_power_manager/main.c +++ b/examples/vm_power_manager/main.c @@ -17,7 +17,6 @@ #include <rte_common.h> #include <rte_eal.h> #include <rte_launch.h> -#include <rte_log.h> #include <rte_per_lcore.h> #include <rte_lcore.h> #include <rte_ethdev.h> @@ -425,8 +424,7 @@ main(int argc, char **argv) lcore_id = rte_get_next_lcore(-1, 1, 0); if (lcore_id == RTE_MAX_LCORE) { - RTE_LOG(ERR, EAL, "A minimum of three cores are required to run " - "application\n"); + fprintf(stderr, "A minimum of three cores are required to run application\n"); return 0; } printf("Running channel monitor on lcore id %d\n", lcore_id); @@ -434,16 +432,15 @@ main(int argc, char **argv) lcore_id = rte_get_next_lcore(lcore_id, 1, 0); if (lcore_id == RTE_MAX_LCORE) { - RTE_LOG(ERR, EAL, "A minimum of three cores are required to run " - "application\n"); + fprintf(stderr, "A minimum of three cores are required to run application\n"); return 0; } if (power_manager_init() < 0) { - printf("Unable to initialize power manager\n"); + fprintf(stderr, "Unable to initialize power manager\n"); return -1; } if (channel_manager_init(CHANNEL_MGR_DEFAULT_HV_PATH) < 0) { - printf("Unable to initialize channel manager\n"); + fprintf(stderr, "Unable to initialize channel manager\n"); return -1; } |
