aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
-rw-r--r--drivers/scsi/scsi_proc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c
index 6fcefa2da503..251598eb3547 100644
--- a/drivers/scsi/scsi_proc.c
+++ b/drivers/scsi/scsi_proc.c
@@ -189,36 +189,36 @@ static int proc_print_scsidevice(struct device *dev, void *data)
189 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); 189 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
190 for (i = 0; i < 8; i++) { 190 for (i = 0; i < 8; i++) {
191 if (sdev->vendor[i] >= 0x20) 191 if (sdev->vendor[i] >= 0x20)
192 seq_printf(s, "%c", sdev->vendor[i]); 192 seq_putc(s, sdev->vendor[i]);
193 else 193 else
194 seq_printf(s, " "); 194 seq_putc(s, ' ');
195 } 195 }
196 196
197 seq_printf(s, " Model: "); 197 seq_puts(s, " Model: ");
198 for (i = 0; i < 16; i++) { 198 for (i = 0; i < 16; i++) {
199 if (sdev->model[i] >= 0x20) 199 if (sdev->model[i] >= 0x20)
200 seq_printf(s, "%c", sdev->model[i]); 200 seq_putc(s, sdev->model[i]);
201 else 201 else
202 seq_printf(s, " "); 202 seq_putc(s, ' ');
203 } 203 }
204 204
205 seq_printf(s, " Rev: "); 205 seq_puts(s, " Rev: ");
206 for (i = 0; i < 4; i++) { 206 for (i = 0; i < 4; i++) {
207 if (sdev->rev[i] >= 0x20) 207 if (sdev->rev[i] >= 0x20)
208 seq_printf(s, "%c", sdev->rev[i]); 208 seq_putc(s, sdev->rev[i]);
209 else 209 else
210 seq_printf(s, " "); 210 seq_putc(s, ' ');
211 } 211 }
212 212
213 seq_printf(s, "\n"); 213 seq_putc(s, '\n');
214 214
215 seq_printf(s, " Type: %s ", scsi_device_type(sdev->type)); 215 seq_printf(s, " Type: %s ", scsi_device_type(sdev->type));
216 seq_printf(s, " ANSI SCSI revision: %02x", 216 seq_printf(s, " ANSI SCSI revision: %02x",
217 sdev->scsi_level - (sdev->scsi_level > 1)); 217 sdev->scsi_level - (sdev->scsi_level > 1));
218 if (sdev->scsi_level == 2) 218 if (sdev->scsi_level == 2)
219 seq_printf(s, " CCS\n"); 219 seq_puts(s, " CCS\n");
220 else 220 else
221 seq_printf(s, "\n"); 221 seq_putc(s, '\n');
222 222
223out: 223out:
224 return 0; 224 return 0;