scst_vdisk/procfs: Fix a copy/paste error

Make sure that the variable "c" is incremented with the number of characters
added.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4528 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-09-26 20:26:17 +00:00
parent 066ecf9a2d
commit 1291645acf

View File

@@ -5486,7 +5486,7 @@ static int vdisk_read_proc(struct seq_file *seq, struct scst_dev_type *dev_type)
}
if (virt_dev->removable) {
seq_printf(seq, "RM ");
c += 4;
c += 3;
}
while (c < 16) {
seq_printf(seq, " ");