From f86ee4d78897bed84480158bfcff21621c76d495 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 28 Feb 2013 20:20:56 +0000 Subject: [PATCH] Minimize logging git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4777 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 11 ++++++----- scst/src/scst_mem.c | 2 +- scst/src/scst_targ.c | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 0223e5955..f36e53670 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2350,7 +2350,7 @@ void scst_report_luns_changed(struct scst_acg *acg) TRACE_ENTRY(); - TRACE_MGMT_DBG("REPORTED LUNS DATA CHANGED (acg %s)", acg->acg_name); + TRACE_DBG("REPORTED LUNS DATA CHANGED (acg %s)", acg->acg_name); list_for_each_entry(sess, &acg->acg_sess_list, acg_sess_list_entry) { scst_report_luns_changed_sess(sess); @@ -2467,17 +2467,18 @@ static void scst_check_reassign_sess(struct scst_session *sess) if (sess->shut_phase != SCST_SESS_SPH_READY) goto out; - TRACE_MGMT_DBG("Checking reassignment for sess %p (initiator %s)", + TRACE_DBG("Checking reassignment for sess %p (initiator %s)", sess, sess->initiator_name); acg = scst_find_acg(sess); if (acg == sess->acg) { - TRACE_MGMT_DBG("No reassignment for sess %p", sess); + TRACE_DBG("No reassignment for sess %p", sess); goto out; } - PRINT_INFO("sess %p will be reassigned from acg %s to acg %s", - sess, sess->acg->acg_name, acg->acg_name); + PRINT_INFO("sess %p (initiator %s) will be reassigned from acg %s to " + "acg %s", sess, sess->initiator_name, sess->acg->acg_name, + acg->acg_name); old_acg = sess->acg; sess->acg = NULL; /* to catch implicit dependencies earlier */ diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index d5fc98b1e..a6fa99faf 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -1246,7 +1246,7 @@ EXPORT_SYMBOL_GPL(sgv_pool_free); * Returns NULL for failure. * * Please don't use it for massive commands data buffers, because it - * isn't fair and don't accout per device memory limits. Use sgv_pool_alloc() + * isn't fair and don't account per device memory limits. Use sgv_pool_alloc() * instead. */ struct scatterlist *scst_alloc_sg(int size, gfp_t gfp_mask, int *count) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index e3daa5bec..4ea213c0b 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -4443,8 +4443,8 @@ int scst_cmd_thread(void *arg) TRACE_ENTRY(); - PRINT_INFO("Processing thread %s (PID %d) started", current->comm, - current->pid); + TRACE(TRACE_MINOR, "Processing thread %s (PID %d) started", + current->comm, current->pid); #if 0 set_user_nice(current, 10); @@ -4472,8 +4472,8 @@ int scst_cmd_thread(void *arg) scst_ioctx_put(p_cmd_threads); - PRINT_INFO("Processing thread %s (PID %d) finished", current->comm, - current->pid); + TRACE(TRACE_MINOR, "Processing thread %s (PID %d) finished", + current->comm, current->pid); TRACE_EXIT(); return 0;