From 1291645acf921bc198eaf65abe8d3e35a796798e Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 26 Sep 2012 20:26:17 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4528 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 4da18868c..4a59449da 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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, " ");