From 1cc15f10fcee29826a25868b0f50506ebb357f63 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 14 Dec 2017 16:58:00 -0700 Subject: [PATCH] lib/event replace printf and fprintf with spdk_log there are still several printf statements in app.c but those occur before the call to spdk_log_open Change-Id: If017c4d658ca45f34b97500bb1a3db5ab1f0675e Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/391888 Tested-by: SPDK Automated Test System Reviewed-by: Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/event/app.c | 2 +- lib/event/reactor.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/event/app.c b/lib/event/app.c index ca43561e37..56bd3db748 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -366,7 +366,7 @@ spdk_app_start(struct spdk_app_opts *opts, spdk_event_fn start_fn, spdk_env_init(&env_opts); - printf("Total cores available: %d\n", spdk_env_get_core_count()); + SPDK_NOTICELOG("Total cores available: %d\n", spdk_env_get_core_count()); /* * If mask not specified on command line or in configuration file, diff --git a/lib/event/reactor.c b/lib/event/reactor.c index b6052b4234..2ebb543685 100644 --- a/lib/event/reactor.c +++ b/lib/event/reactor.c @@ -658,7 +658,7 @@ spdk_reactors_init(unsigned int max_delay_us) char mempool_name[32]; socket_mask = spdk_reactor_get_socket_mask(); - printf("Occupied cpu socket mask is 0x%lx\n", socket_mask); + SPDK_NOTICELOG("Occupied cpu socket mask is 0x%lx\n", socket_mask); for (i = 0; i < SPDK_MAX_SOCKET; i++) { if ((1ULL << i) & socket_mask) { @@ -666,7 +666,7 @@ spdk_reactors_init(unsigned int max_delay_us) } } if (socket_count == 0) { - printf("No sockets occupied (internal error)\n"); + SPDK_ERRLOG("No sockets occupied (internal error)\n"); return -1; }