mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -565,7 +565,7 @@ struct scst_tgt *scst_register_target(struct scst_tgt_template *vtt,
|
||||
mutex_unlock(&scst_mutex);
|
||||
|
||||
#ifdef CONFIG_SCST_PROC
|
||||
PRINT_INFO("Target %s (rel ID %d) for template %s registered "
|
||||
PRINT_INFO("Target %s (relative target id %d) for template %s registered "
|
||||
"successfully", tgt->tgt_name, tgt->rel_tgt_id, vtt->name);
|
||||
#else
|
||||
PRINT_INFO("Target %s for template %s registered successfully",
|
||||
|
||||
@@ -2014,13 +2014,13 @@ static int scst_process_tgt_enable_store(struct scst_tgt *tgt, bool enable)
|
||||
res = gen_relative_target_port_id(&tgt->rel_tgt_id);
|
||||
if (res != 0)
|
||||
goto out_put;
|
||||
PRINT_INFO("Using autogenerated rel ID %d for target "
|
||||
"%s", tgt->rel_tgt_id, tgt->tgt_name);
|
||||
PRINT_INFO("Using autogenerated relative target id %d "
|
||||
"for target %s", tgt->rel_tgt_id, tgt->tgt_name);
|
||||
} else {
|
||||
if (!scst_is_relative_target_port_id_unique(
|
||||
tgt->rel_tgt_id, tgt)) {
|
||||
PRINT_ERROR("Relative port id %d is not unique",
|
||||
tgt->rel_tgt_id);
|
||||
PRINT_ERROR("Relative target id %d is not "
|
||||
"unique", tgt->rel_tgt_id);
|
||||
res = -EBADSLT;
|
||||
goto out_put;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user