diff options
| author | Stephen Hemminger <[email protected]> | 2024-10-27 10:24:35 -0700 |
|---|---|---|
| committer | David Marchand <[email protected]> | 2024-11-08 18:08:35 +0100 |
| commit | 72bf6da85a657dc4dd0662f1cd854dcc0da6da07 (patch) | |
| tree | 96a6c242f6c6c1737a8638d3e74e920498afdebc /lib | |
| parent | 9a4276f92d3d9703c3509c67629a0fa3632d53a6 (diff) | |
eal: do not log init failure twice
The message already goes through logging, and does not need
to be printed on stderr.
Message level should be ALERT to match function name.
Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Tyler Retzlaff <[email protected]>
Acked-by: Morten Brørup <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
Acked-by: Chengwen Feng <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/eal/freebsd/eal.c | 3 | ||||
| -rw-r--r-- | lib/eal/linux/eal.c | 3 | ||||
| -rw-r--r-- | lib/eal/windows/eal.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 16b1c67cca..c84983ac3f 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -530,8 +530,7 @@ rte_eal_iopl_init(void) static void rte_eal_init_alert(const char *msg) { - fprintf(stderr, "EAL: FATAL: %s\n", msg); - EAL_LOG(ERR, "%s", msg); + EAL_LOG(ALERT, "%s", msg); } /* Launch threads, called at application init(). */ diff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c index 49a88cfbd5..3915cdb838 100644 --- a/lib/eal/linux/eal.c +++ b/lib/eal/linux/eal.c @@ -831,8 +831,7 @@ rte_eal_iopl_init(void) static void rte_eal_init_alert(const char *msg) { - fprintf(stderr, "EAL: FATAL: %s\n", msg); - EAL_LOG(ERR, "%s", msg); + EAL_LOG(ALERT, "%s", msg); } /* diff --git a/lib/eal/windows/eal.c b/lib/eal/windows/eal.c index f77053eb7e..a3eb15ce00 100644 --- a/lib/eal/windows/eal.c +++ b/lib/eal/windows/eal.c @@ -182,8 +182,7 @@ sync_func(void *arg __rte_unused) static void rte_eal_init_alert(const char *msg) { - fprintf(stderr, "EAL: FATAL: %s\n", msg); - EAL_LOG(ERR, "%s", msg); + EAL_LOG(ALERT, "%s", msg); } /* Stubs to enable EAL trace point compilation |
