aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-12-02 18:10:54 -0500
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 12:57:46 -0500
commitf50332ff2574130903356e800913c1a73cc6c1dc (patch)
tree89f06badf4e0f42bc26f150d89101efde0dea82e /drivers/scsi
parent3d30079c3a9000504cf71e4e8dd94619070dc4f3 (diff)
scsi: print single-character strings with seq_putc
Using seq_putc to print a single character saves at least a strlen() call and a memory access, and may also give a small .text reduction. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/NCR5380.c2
-rw-r--r--drivers/scsi/advansys.c34
-rw-r--r--drivers/scsi/aic7xxx/aic79xx_proc.c10
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_proc.c10
-rw-r--r--drivers/scsi/atari_NCR5380.c2
-rw-r--r--drivers/scsi/dc395x.c4
-rw-r--r--drivers/scsi/esas2r/esas2r_main.c2
-rw-r--r--drivers/scsi/in2000.c2
-rw-r--r--drivers/scsi/ips.c2
-rw-r--r--drivers/scsi/nsp32.c2
-rw-r--r--drivers/scsi/pcmcia/nsp_cs.c4
-rw-r--r--drivers/scsi/qla2xxx/qla_dfs.c2
-rw-r--r--drivers/scsi/scsi_proc.c10
-rw-r--r--drivers/scsi/scsi_trace.c2
-rw-r--r--drivers/scsi/wd33c93.c2
15 files changed, 45 insertions, 45 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index a30af00c5a1a..8981701802ca 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -764,7 +764,7 @@ static void lprint_command(unsigned char *command, struct seq_file *m)
764 lprint_opcode(command[0], m); 764 lprint_opcode(command[0], m);
765 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) 765 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i)
766 seq_printf(m, "%02x ", command[i]); 766 seq_printf(m, "%02x ", command[i]);
767 seq_puts(m, "\n"); 767 seq_putc(m, '\n');
768} 768}
769 769
770static void lprint_opcode(int opcode, struct seq_file *m) 770static void lprint_opcode(int opcode, struct seq_file *m)
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index c91a39916d90..ae95e347f37d 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -3088,7 +3088,7 @@ static void asc_prt_asc_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3088 for (i = 0; i <= ASC_MAX_TID; i++) 3088 for (i = 0; i <= ASC_MAX_TID; i++)
3089 seq_printf(m, " %c", 3089 seq_printf(m, " %c",
3090 (ep->init_sdtr & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3090 (ep->init_sdtr & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3091 seq_puts(m, "\n"); 3091 seq_putc(m, '\n');
3092 3092
3093#ifdef CONFIG_ISA 3093#ifdef CONFIG_ISA
3094 if (asc_dvc_varp->bus_type & ASC_IS_ISA) { 3094 if (asc_dvc_varp->bus_type & ASC_IS_ISA) {
@@ -3203,7 +3203,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3203 seq_puts(m, " Target ID: "); 3203 seq_puts(m, " Target ID: ");
3204 for (i = 0; i <= ADV_MAX_TID; i++) 3204 for (i = 0; i <= ADV_MAX_TID; i++)
3205 seq_printf(m, " %X", i); 3205 seq_printf(m, " %X", i);
3206 seq_puts(m, "\n"); 3206 seq_putc(m, '\n');
3207 3207
3208 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3208 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
3209 word = ep_3550->disc_enable; 3209 word = ep_3550->disc_enable;
@@ -3216,7 +3216,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3216 for (i = 0; i <= ADV_MAX_TID; i++) 3216 for (i = 0; i <= ADV_MAX_TID; i++)
3217 seq_printf(m, " %c", 3217 seq_printf(m, " %c",
3218 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3218 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3219 seq_puts(m, "\n"); 3219 seq_putc(m, '\n');
3220 3220
3221 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3221 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
3222 word = ep_3550->tagqng_able; 3222 word = ep_3550->tagqng_able;
@@ -3229,7 +3229,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3229 for (i = 0; i <= ADV_MAX_TID; i++) 3229 for (i = 0; i <= ADV_MAX_TID; i++)
3230 seq_printf(m, " %c", 3230 seq_printf(m, " %c",
3231 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3231 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3232 seq_puts(m, "\n"); 3232 seq_putc(m, '\n');
3233 3233
3234 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3234 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
3235 word = ep_3550->start_motor; 3235 word = ep_3550->start_motor;
@@ -3242,7 +3242,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3242 for (i = 0; i <= ADV_MAX_TID; i++) 3242 for (i = 0; i <= ADV_MAX_TID; i++)
3243 seq_printf(m, " %c", 3243 seq_printf(m, " %c",
3244 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3244 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3245 seq_puts(m, "\n"); 3245 seq_putc(m, '\n');
3246 3246
3247 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3247 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
3248 seq_puts(m, " Synchronous Transfer:"); 3248 seq_puts(m, " Synchronous Transfer:");
@@ -3250,7 +3250,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3250 seq_printf(m, " %c", 3250 seq_printf(m, " %c",
3251 (ep_3550->sdtr_able & ADV_TID_TO_TIDMASK(i)) ? 3251 (ep_3550->sdtr_able & ADV_TID_TO_TIDMASK(i)) ?
3252 'Y' : 'N'); 3252 'Y' : 'N');
3253 seq_puts(m, "\n"); 3253 seq_putc(m, '\n');
3254 } 3254 }
3255 3255
3256 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3256 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
@@ -3259,7 +3259,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3259 seq_printf(m, " %c", 3259 seq_printf(m, " %c",
3260 (ep_3550->ultra_able & ADV_TID_TO_TIDMASK(i)) 3260 (ep_3550->ultra_able & ADV_TID_TO_TIDMASK(i))
3261 ? 'Y' : 'N'); 3261 ? 'Y' : 'N');
3262 seq_puts(m, "\n"); 3262 seq_putc(m, '\n');
3263 } 3263 }
3264 3264
3265 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) { 3265 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) {
@@ -3273,7 +3273,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3273 for (i = 0; i <= ADV_MAX_TID; i++) 3273 for (i = 0; i <= ADV_MAX_TID; i++)
3274 seq_printf(m, " %c", 3274 seq_printf(m, " %c",
3275 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3275 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3276 seq_puts(m, "\n"); 3276 seq_putc(m, '\n');
3277 3277
3278 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800 || 3278 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800 ||
3279 adv_dvc_varp->chip_type == ADV_CHIP_ASC38C1600) { 3279 adv_dvc_varp->chip_type == ADV_CHIP_ASC38C1600) {
@@ -3318,7 +3318,7 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost
3318 seq_puts(m, "\n "); 3318 seq_puts(m, "\n ");
3319 sdtr_speed >>= 4; 3319 sdtr_speed >>= 4;
3320 } 3320 }
3321 seq_puts(m, "\n"); 3321 seq_putc(m, '\n');
3322 } 3322 }
3323} 3323}
3324 3324
@@ -3448,7 +3448,7 @@ static void asc_prt_asc_board_info(struct seq_file *m, struct Scsi_Host *shost)
3448 i, 3448 i,
3449 (v->sdtr_done & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3449 (v->sdtr_done & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3450 } 3450 }
3451 seq_puts(m, "\n"); 3451 seq_putc(m, '\n');
3452 3452
3453 for (i = 0; i <= ASC_MAX_TID; i++) { 3453 for (i = 0; i <= ASC_MAX_TID; i++) {
3454 uchar syn_period_ix; 3454 uchar syn_period_ix;
@@ -3483,7 +3483,7 @@ static void asc_prt_asc_board_info(struct seq_file *m, struct Scsi_Host *shost)
3483 seq_puts(m, "*\n"); 3483 seq_puts(m, "*\n");
3484 renegotiate = 1; 3484 renegotiate = 1;
3485 } else { 3485 } else {
3486 seq_puts(m, "\n"); 3486 seq_putc(m, '\n');
3487 } 3487 }
3488 } 3488 }
3489 3489
@@ -3570,7 +3570,7 @@ static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost)
3570 3570
3571 seq_printf(m, " %X:%d", i, lrambyte); 3571 seq_printf(m, " %X:%d", i, lrambyte);
3572 } 3572 }
3573 seq_puts(m, "\n"); 3573 seq_putc(m, '\n');
3574 3574
3575 AdvReadWordLram(iop_base, ASC_MC_WDTR_ABLE, wdtr_able); 3575 AdvReadWordLram(iop_base, ASC_MC_WDTR_ABLE, wdtr_able);
3576 seq_puts(m, " Wide Enabled:"); 3576 seq_puts(m, " Wide Enabled:");
@@ -3584,7 +3584,7 @@ static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost)
3584 i, 3584 i,
3585 (wdtr_able & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3585 (wdtr_able & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3586 } 3586 }
3587 seq_puts(m, "\n"); 3587 seq_putc(m, '\n');
3588 3588
3589 AdvReadWordLram(iop_base, ASC_MC_WDTR_DONE, wdtr_done); 3589 AdvReadWordLram(iop_base, ASC_MC_WDTR_DONE, wdtr_done);
3590 seq_puts(m, " Transfer Bit Width:"); 3590 seq_puts(m, " Transfer Bit Width:");
@@ -3603,11 +3603,11 @@ static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost)
3603 3603
3604 if ((wdtr_able & ADV_TID_TO_TIDMASK(i)) && 3604 if ((wdtr_able & ADV_TID_TO_TIDMASK(i)) &&
3605 (wdtr_done & ADV_TID_TO_TIDMASK(i)) == 0) { 3605 (wdtr_done & ADV_TID_TO_TIDMASK(i)) == 0) {
3606 seq_puts(m, "*"); 3606 seq_putc(m, '*');
3607 renegotiate = 1; 3607 renegotiate = 1;
3608 } 3608 }
3609 } 3609 }
3610 seq_puts(m, "\n"); 3610 seq_putc(m, '\n');
3611 3611
3612 AdvReadWordLram(iop_base, ASC_MC_SDTR_ABLE, sdtr_able); 3612 AdvReadWordLram(iop_base, ASC_MC_SDTR_ABLE, sdtr_able);
3613 seq_puts(m, " Synchronous Enabled:"); 3613 seq_puts(m, " Synchronous Enabled:");
@@ -3621,7 +3621,7 @@ static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost)
3621 i, 3621 i,
3622 (sdtr_able & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); 3622 (sdtr_able & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3623 } 3623 }
3624 seq_puts(m, "\n"); 3624 seq_putc(m, '\n');
3625 3625
3626 AdvReadWordLram(iop_base, ASC_MC_SDTR_DONE, sdtr_done); 3626 AdvReadWordLram(iop_base, ASC_MC_SDTR_DONE, sdtr_done);
3627 for (i = 0; i <= ADV_MAX_TID; i++) { 3627 for (i = 0; i <= ADV_MAX_TID; i++) {
@@ -3670,7 +3670,7 @@ static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost)
3670 seq_puts(m, "*\n"); 3670 seq_puts(m, "*\n");
3671 renegotiate = 1; 3671 renegotiate = 1;
3672 } else { 3672 } else {
3673 seq_puts(m, "\n"); 3673 seq_putc(m, '\n');
3674 } 3674 }
3675 } 3675 }
3676 3676
diff --git a/drivers/scsi/aic7xxx/aic79xx_proc.c b/drivers/scsi/aic7xxx/aic79xx_proc.c
index e095598d2ef7..add2da581d66 100644
--- a/drivers/scsi/aic7xxx/aic79xx_proc.c
+++ b/drivers/scsi/aic7xxx/aic79xx_proc.c
@@ -148,9 +148,9 @@ ahd_format_transinfo(struct seq_file *m, struct ahd_transinfo *tinfo)
148 } 148 }
149 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width)); 149 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width));
150 } else if (freq != 0) { 150 } else if (freq != 0) {
151 seq_puts(m, ")"); 151 seq_putc(m, ')');
152 } 152 }
153 seq_puts(m, "\n"); 153 seq_putc(m, '\n');
154} 154}
155 155
156static void 156static void
@@ -294,14 +294,14 @@ ahd_linux_show_info(struct seq_file *m, struct Scsi_Host *shost)
294 seq_puts(m, "Serial EEPROM:\n"); 294 seq_puts(m, "Serial EEPROM:\n");
295 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) { 295 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) {
296 if (((i % 8) == 0) && (i != 0)) { 296 if (((i % 8) == 0) && (i != 0)) {
297 seq_puts(m, "\n"); 297 seq_putc(m, '\n');
298 } 298 }
299 seq_printf(m, "0x%.4x ", 299 seq_printf(m, "0x%.4x ",
300 ((uint16_t*)ahd->seep_config)[i]); 300 ((uint16_t*)ahd->seep_config)[i]);
301 } 301 }
302 seq_puts(m, "\n"); 302 seq_putc(m, '\n');
303 } 303 }
304 seq_puts(m, "\n"); 304 seq_putc(m, '\n');
305 305
306 if ((ahd->features & AHD_WIDE) == 0) 306 if ((ahd->features & AHD_WIDE) == 0)
307 max_targ = 8; 307 max_targ = 8;
diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c
index 25511ca2024a..18459605d991 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_proc.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_proc.c
@@ -125,9 +125,9 @@ ahc_format_transinfo(struct seq_file *m, struct ahc_transinfo *tinfo)
125 } 125 }
126 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width)); 126 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width));
127 } else if (freq != 0) { 127 } else if (freq != 0) {
128 seq_puts(m, ")"); 128 seq_putc(m, ')');
129 } 129 }
130 seq_puts(m, "\n"); 130 seq_putc(m, '\n');
131} 131}
132 132
133static void 133static void
@@ -308,14 +308,14 @@ ahc_linux_show_info(struct seq_file *m, struct Scsi_Host *shost)
308 seq_puts(m, "Serial EEPROM:\n"); 308 seq_puts(m, "Serial EEPROM:\n");
309 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) { 309 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) {
310 if (((i % 8) == 0) && (i != 0)) { 310 if (((i % 8) == 0) && (i != 0)) {
311 seq_puts(m, "\n"); 311 seq_putc(m, '\n');
312 } 312 }
313 seq_printf(m, "0x%.4x ", 313 seq_printf(m, "0x%.4x ",
314 ((uint16_t*)ahc->seep_config)[i]); 314 ((uint16_t*)ahc->seep_config)[i]);
315 } 315 }
316 seq_puts(m, "\n"); 316 seq_putc(m, '\n');
317 } 317 }
318 seq_puts(m, "\n"); 318 seq_putc(m, '\n');
319 319
320 max_targ = 16; 320 max_targ = 16;
321 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0) 321 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0)
diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c
index 04d0c6e37217..a70255413e7f 100644
--- a/drivers/scsi/atari_NCR5380.c
+++ b/drivers/scsi/atari_NCR5380.c
@@ -716,7 +716,7 @@ static void show_Scsi_Cmnd(struct scsi_cmnd *cmd, struct seq_file *m)
716 seq_printf(m, "%2d (0x%02x)", command[0], command[0]); 716 seq_printf(m, "%2d (0x%02x)", command[0], command[0]);
717 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) 717 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i)
718 seq_printf(m, " %02x", command[i]); 718 seq_printf(m, " %02x", command[i]);
719 seq_puts(m, "\n"); 719 seq_putc(m, '\n');
720} 720}
721 721
722static int __maybe_unused NCR5380_show_info(struct seq_file *m, 722static int __maybe_unused NCR5380_show_info(struct seq_file *m,
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 48c79f935b45..5ee7f44cf869 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -4692,7 +4692,7 @@ static int dc395x_show_info(struct seq_file *m, struct Scsi_Host *host)
4692 if (timer_pending(&acb->waiting_timer)) 4692 if (timer_pending(&acb->waiting_timer))
4693 seq_puts(m, "Waiting queue timer running\n"); 4693 seq_puts(m, "Waiting queue timer running\n");
4694 else 4694 else
4695 seq_puts(m, "\n"); 4695 seq_putc(m, '\n');
4696 4696
4697 list_for_each_entry(dcb, &acb->dcb_list, list) { 4697 list_for_each_entry(dcb, &acb->dcb_list, list) {
4698 struct ScsiReqBlk *srb; 4698 struct ScsiReqBlk *srb;
@@ -4709,7 +4709,7 @@ static int dc395x_show_info(struct seq_file *m, struct Scsi_Host *host)
4709 list_for_each_entry(srb, &dcb->srb_going_list, list) 4709 list_for_each_entry(srb, &dcb->srb_going_list, list)
4710 seq_printf(m, " %p", srb->cmd); 4710 seq_printf(m, " %p", srb->cmd);
4711 if (!list_empty(&dcb->srb_waiting_list) || !list_empty(&dcb->srb_going_list)) 4711 if (!list_empty(&dcb->srb_waiting_list) || !list_empty(&dcb->srb_going_list))
4712 seq_puts(m, "\n"); 4712 seq_putc(m, '\n');
4713 } 4713 }
4714 4714
4715 if (debug_enabled(DBG_1)) { 4715 if (debug_enabled(DBG_1)) {
diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c
index 7e1c21e6736b..31f8966b2e03 100644
--- a/drivers/scsi/esas2r/esas2r_main.c
+++ b/drivers/scsi/esas2r/esas2r_main.c
@@ -749,7 +749,7 @@ int esas2r_show_info(struct seq_file *m, struct Scsi_Host *sh)
749 if (dev_count == 0) 749 if (dev_count == 0)
750 seq_puts(m, "none\n"); 750 seq_puts(m, "none\n");
751 751
752 seq_puts(m, "\n"); 752 seq_putc(m, '\n');
753 return 0; 753 return 0;
754 754
755} 755}
diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c
index a73395e10f64..3882d9f519c8 100644
--- a/drivers/scsi/in2000.c
+++ b/drivers/scsi/in2000.c
@@ -2273,7 +2273,7 @@ static int in2000_show_info(struct seq_file *m, struct Scsi_Host *instance)
2273 if (hd->proc & PR_TEST) { 2273 if (hd->proc & PR_TEST) {
2274 ; /* insert your own custom function here */ 2274 ; /* insert your own custom function here */
2275 } 2275 }
2276 seq_puts(m, "\n"); 2276 seq_putc(m, '\n');
2277 spin_unlock_irqrestore(instance->host_lock, flags); 2277 spin_unlock_irqrestore(instance->host_lock, flags);
2278#endif /* PROC_INTERFACE */ 2278#endif /* PROC_INTERFACE */
2279 return 0; 2279 return 0;
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index 615a9a3d1e0a..7542f11d3fcd 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -2137,7 +2137,7 @@ ips_host_info(ips_ha_t *ha, struct seq_file *m)
2137 seq_printf(m, "\tCurrent Active PT Commands : %d\n", 2137 seq_printf(m, "\tCurrent Active PT Commands : %d\n",
2138 ha->num_ioctl); 2138 ha->num_ioctl);
2139 2139
2140 seq_puts(m, "\n"); 2140 seq_putc(m, '\n');
2141 2141
2142 return 0; 2142 return 0;
2143} 2143}
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 8f6b1b4c6138..c6077cefbeca 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -1509,7 +1509,7 @@ static int nsp32_show_info(struct seq_file *m, struct Scsi_Host *host)
1509 data->target[id].offset 1509 data->target[id].offset
1510 ); 1510 );
1511 } 1511 }
1512 seq_puts(m, "\n"); 1512 seq_putc(m, '\n');
1513 } 1513 }
1514 return 0; 1514 return 0;
1515} 1515}
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c
index acf558a0bd79..1b6c8833a304 100644
--- a/drivers/scsi/pcmcia/nsp_cs.c
+++ b/drivers/scsi/pcmcia/nsp_cs.c
@@ -1398,7 +1398,7 @@ static int nsp_show_info(struct seq_file *m, struct Scsi_Host *host)
1398 seq_puts(m, "???"); 1398 seq_puts(m, "???");
1399 break; 1399 break;
1400 } 1400 }
1401 seq_puts(m, "\n"); 1401 seq_putc(m, '\n');
1402 1402
1403 1403
1404 spin_lock_irqsave(&(data->Lock), flags); 1404 spin_lock_irqsave(&(data->Lock), flags);
@@ -1439,7 +1439,7 @@ static int nsp_show_info(struct seq_file *m, struct Scsi_Host *host)
1439 data->Sync[id].SyncOffset 1439 data->Sync[id].SyncOffset
1440 ); 1440 );
1441 } 1441 }
1442 seq_puts(m, "\n"); 1442 seq_putc(m, '\n');
1443 } 1443 }
1444 return 0; 1444 return 0;
1445} 1445}
diff --git a/drivers/scsi/qla2xxx/qla_dfs.c b/drivers/scsi/qla2xxx/qla_dfs.c
index c837ba3156f7..15cf074ffa3c 100644
--- a/drivers/scsi/qla2xxx/qla_dfs.c
+++ b/drivers/scsi/qla2xxx/qla_dfs.c
@@ -38,7 +38,7 @@ qla2x00_dfs_fce_show(struct seq_file *s, void *unused)
38 seq_printf(s, "\n%llx: ", 38 seq_printf(s, "\n%llx: ",
39 (unsigned long long)((cnt * 4) + fce_start)); 39 (unsigned long long)((cnt * 4) + fce_start));
40 else 40 else
41 seq_puts(s, " "); 41 seq_putc(s, ' ');
42 seq_printf(s, "%08x", *fce++); 42 seq_printf(s, "%08x", *fce++);
43 } 43 }
44 44
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c
index 581de8fad75d..251598eb3547 100644
--- a/drivers/scsi/scsi_proc.c
+++ b/drivers/scsi/scsi_proc.c
@@ -191,7 +191,7 @@ static int proc_print_scsidevice(struct device *dev, void *data)
191 if (sdev->vendor[i] >= 0x20) 191 if (sdev->vendor[i] >= 0x20)
192 seq_putc(s, sdev->vendor[i]); 192 seq_putc(s, sdev->vendor[i]);
193 else 193 else
194 seq_puts(s, " "); 194 seq_putc(s, ' ');
195 } 195 }
196 196
197 seq_puts(s, " Model: "); 197 seq_puts(s, " Model: ");
@@ -199,7 +199,7 @@ static int proc_print_scsidevice(struct device *dev, void *data)
199 if (sdev->model[i] >= 0x20) 199 if (sdev->model[i] >= 0x20)
200 seq_putc(s, sdev->model[i]); 200 seq_putc(s, sdev->model[i]);
201 else 201 else
202 seq_puts(s, " "); 202 seq_putc(s, ' ');
203 } 203 }
204 204
205 seq_puts(s, " Rev: "); 205 seq_puts(s, " Rev: ");
@@ -207,10 +207,10 @@ static int proc_print_scsidevice(struct device *dev, void *data)
207 if (sdev->rev[i] >= 0x20) 207 if (sdev->rev[i] >= 0x20)
208 seq_putc(s, sdev->rev[i]); 208 seq_putc(s, sdev->rev[i]);
209 else 209 else
210 seq_puts(s, " "); 210 seq_putc(s, ' ');
211 } 211 }
212 212
213 seq_puts(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",
@@ -218,7 +218,7 @@ static int proc_print_scsidevice(struct device *dev, void *data)
218 if (sdev->scsi_level == 2) 218 if (sdev->scsi_level == 2)
219 seq_puts(s, " CCS\n"); 219 seq_puts(s, " CCS\n");
220 else 220 else
221 seq_puts(s, "\n"); 221 seq_putc(s, '\n');
222 222
223out: 223out:
224 return 0; 224 return 0;
diff --git a/drivers/scsi/scsi_trace.c b/drivers/scsi/scsi_trace.c
index 2cd4b7eefe7c..08bb47b53bc3 100644
--- a/drivers/scsi/scsi_trace.c
+++ b/drivers/scsi/scsi_trace.c
@@ -249,7 +249,7 @@ scsi_trace_misc(struct trace_seq *p, unsigned char *cdb, int len)
249{ 249{
250 const char *ret = trace_seq_buffer_ptr(p); 250 const char *ret = trace_seq_buffer_ptr(p);
251 251
252 trace_seq_puts(p, "-"); 252 trace_seq_putc(p, '-');
253 trace_seq_putc(p, 0); 253 trace_seq_putc(p, 0);
254 254
255 return ret; 255 return ret;
diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c
index 6e041a782d21..9e09da412b92 100644
--- a/drivers/scsi/wd33c93.c
+++ b/drivers/scsi/wd33c93.c
@@ -2192,7 +2192,7 @@ wd33c93_show_info(struct seq_file *m, struct Scsi_Host *instance)
2192 cmd = (struct scsi_cmnd *) cmd->host_scribble; 2192 cmd = (struct scsi_cmnd *) cmd->host_scribble;
2193 } 2193 }
2194 } 2194 }
2195 seq_puts(m, "\n"); 2195 seq_putc(m, '\n');
2196 spin_unlock_irq(&hd->lock); 2196 spin_unlock_irq(&hd->lock);
2197#endif /* PROC_INTERFACE */ 2197#endif /* PROC_INTERFACE */
2198 return 0; 2198 return 0;