From 6c56bfa67a0fc7ee4218beee71c7ccd06728cf03 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 7 Nov 2016 14:58:55 -0700 Subject: [PATCH] nvmf_tgt: remove uses of SPDK_TRACELOG in app Change-Id: I28b50c71658e497ef723c908b1a896b941897d54 Signed-off-by: Daniel Verkamp --- app/nvmf_tgt/nvmf_rpc.c | 10 +++++----- app/nvmf_tgt/nvmf_tgt.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/nvmf_tgt/nvmf_rpc.c b/app/nvmf_tgt/nvmf_rpc.c index a561335a0..711e8e755 100644 --- a/app/nvmf_tgt/nvmf_rpc.c +++ b/app/nvmf_tgt/nvmf_rpc.c @@ -182,7 +182,7 @@ decode_rpc_listen_address(const struct spdk_json_val *val, void *out) if (spdk_json_decode_object(val, rpc_listen_address_decoders, sizeof(rpc_listen_address_decoders) / sizeof(*rpc_listen_address_decoders), req)) { - SPDK_TRACELOG(SPDK_TRACE_DEBUG, "spdk_json_decode_object failed\n"); + SPDK_ERRLOG("spdk_json_decode_object failed\n"); return -1; } return 0; @@ -302,7 +302,7 @@ spdk_rpc_construct_nvmf_subsystem(struct spdk_jsonrpc_server_conn *conn, if (spdk_json_decode_object(params, rpc_subsystem_decoders, sizeof(rpc_subsystem_decoders) / sizeof(*rpc_subsystem_decoders), &req)) { - SPDK_TRACELOG(SPDK_TRACE_DEBUG, "spdk_json_decode_object failed\n"); + SPDK_ERRLOG("spdk_json_decode_object failed\n"); goto invalid; } @@ -354,17 +354,17 @@ spdk_rpc_delete_nvmf_subsystem(struct spdk_jsonrpc_server_conn *conn, if (spdk_json_decode_object(params, rpc_delete_subsystem_decoders, sizeof(rpc_delete_subsystem_decoders) / sizeof(*rpc_delete_subsystem_decoders), &req)) { - SPDK_TRACELOG(SPDK_TRACE_DEBUG, "spdk_json_decode_object failed\n"); + SPDK_ERRLOG("spdk_json_decode_object failed\n"); goto invalid; } if (req.nqn == NULL) { - SPDK_TRACELOG(SPDK_TRACE_DEBUG, "missing name param\n"); + SPDK_ERRLOG("missing name param\n"); goto invalid; } if (nvmf_tgt_shutdown_subsystem_by_nqn(req.nqn)) { - SPDK_TRACELOG(SPDK_TRACE_DEBUG, "shutdown_subsystem failed\n"); + SPDK_ERRLOG("shutdown_subsystem failed\n"); goto invalid; } diff --git a/app/nvmf_tgt/nvmf_tgt.c b/app/nvmf_tgt/nvmf_tgt.c index 503f1f649..0df190787 100644 --- a/app/nvmf_tgt/nvmf_tgt.c +++ b/app/nvmf_tgt/nvmf_tgt.c @@ -239,7 +239,7 @@ nvmf_tgt_create_subsystem(int num, const char *name, enum spdk_nvmf_subtype subt app_subsys->subsystem = subsystem; app_subsys->lcore = lcore; - SPDK_TRACELOG(SPDK_TRACE_NVMF, "allocated subsystem %p on lcore %u\n", subsystem, lcore); + SPDK_NOTICELOG("allocated subsystem %s on lcore %u\n", name, lcore); TAILQ_INSERT_TAIL(&g_subsystems, app_subsys, tailq);