Commit 1cc15f10 authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

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: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/391888


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatar <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 65a7fb47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}