From 1a5d78e32e1170ab45015ecdfad0cb8c7ae41593 Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Mon, 30 Dec 2019 19:45:59 +0100 Subject: [PATCH] iscsi: replace fprintf by SPDK_LOG Replace usage of fprintf(err, *MSG*) by SPDK_ERRLOG(*MSG*) since in SPDK we always prefer later Change-Id: I3e2b5c12caa572b32236f5ede01b754b2e1e2a53 Signed-off-by: Vitaliy Mysak Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478940 Community-CI: SPDK CI Jenkins Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Paul Luse Reviewed-by: Shuhei Matsumoto --- lib/iscsi/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index e177e36e9..bf2ae4028 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -150,7 +150,7 @@ int spdk_initialize_iscsi_conns(void) g_conns_array_fd, 0); if (g_conns_array == MAP_FAILED) { - fprintf(stderr, "could not mmap cons array file %s (%d)\n", g_shm_name, errno); + SPDK_ERRLOG("could not mmap cons array file %s (%d)\n", g_shm_name, errno); goto err; }