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 <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/391888
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2017-12-14 16:58:00 -07:00 committed by Jim Harris
parent 65a7fb47ff
commit 1cc15f10fc
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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;
}