Key mark for explicit confirmations added

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-03-17 12:56:35 +00:00
parent 95bdae04a4
commit dc3f4265c9

View File

@@ -5217,7 +5217,8 @@ static ssize_t q2t_show_expl_conf_enabled(struct kobject *kobj,
tgt = (struct q2t_tgt *)scst_tgt_get_tgt_priv(scst_tgt);
ha = tgt->ha;
size = scnprintf(buffer, PAGE_SIZE, "%d\n", ha->enable_explicit_conf);
size = scnprintf(buffer, PAGE_SIZE, "%d\n%s", ha->enable_explicit_conf,
ha->enable_explicit_conf ? SCST_SYSFS_KEY_MARK "\n" : "");
return size;
}