aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_proc.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_proc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c
index 64eec6c07a83..25511ca2024a 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_proc.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_proc.c
@@ -119,15 +119,15 @@ ahc_format_transinfo(struct seq_file *m, struct ahc_transinfo *tinfo)
119 119
120 if (tinfo->width > 0) { 120 if (tinfo->width > 0) {
121 if (freq != 0) { 121 if (freq != 0) {
122 seq_printf(m, ", "); 122 seq_puts(m, ", ");
123 } else { 123 } else {
124 seq_printf(m, " ("); 124 seq_puts(m, " (");
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_printf(m, ")"); 128 seq_puts(m, ")");
129 } 129 }
130 seq_printf(m, "\n"); 130 seq_puts(m, "\n");
131} 131}
132 132
133static void 133static void
@@ -145,15 +145,15 @@ ahc_dump_target_state(struct ahc_softc *ahc, struct seq_file *m,
145 if ((ahc->features & AHC_TWIN) != 0) 145 if ((ahc->features & AHC_TWIN) != 0)
146 seq_printf(m, "Channel %c ", channel); 146 seq_printf(m, "Channel %c ", channel);
147 seq_printf(m, "Target %d Negotiation Settings\n", target_id); 147 seq_printf(m, "Target %d Negotiation Settings\n", target_id);
148 seq_printf(m, "\tUser: "); 148 seq_puts(m, "\tUser: ");
149 ahc_format_transinfo(m, &tinfo->user); 149 ahc_format_transinfo(m, &tinfo->user);
150 starget = ahc->platform_data->starget[target_offset]; 150 starget = ahc->platform_data->starget[target_offset];
151 if (!starget) 151 if (!starget)
152 return; 152 return;
153 153
154 seq_printf(m, "\tGoal: "); 154 seq_puts(m, "\tGoal: ");
155 ahc_format_transinfo(m, &tinfo->goal); 155 ahc_format_transinfo(m, &tinfo->goal);
156 seq_printf(m, "\tCurr: "); 156 seq_puts(m, "\tCurr: ");
157 ahc_format_transinfo(m, &tinfo->curr); 157 ahc_format_transinfo(m, &tinfo->curr);
158 158
159 for (lun = 0; lun < AHC_NUM_LUNS; lun++) { 159 for (lun = 0; lun < AHC_NUM_LUNS; lun++) {
@@ -303,19 +303,19 @@ ahc_linux_show_info(struct seq_file *m, struct Scsi_Host *shost)
303 303
304 304
305 if (ahc->seep_config == NULL) 305 if (ahc->seep_config == NULL)
306 seq_printf(m, "No Serial EEPROM\n"); 306 seq_puts(m, "No Serial EEPROM\n");
307 else { 307 else {
308 seq_printf(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_printf(m, "\n"); 311 seq_puts(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_printf(m, "\n"); 316 seq_puts(m, "\n");
317 } 317 }
318 seq_printf(m, "\n"); 318 seq_puts(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)