aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_attr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_attr.c b/drivers/scsi/arcmsr/arcmsr_attr.c
index c96f7140cb62..12497da5529d 100644
--- a/drivers/scsi/arcmsr/arcmsr_attr.c
+++ b/drivers/scsi/arcmsr/arcmsr_attr.c
@@ -265,7 +265,7 @@ arcmsr_free_sysfs_attr(struct AdapterControlBlock *acb) {
265static ssize_t 265static ssize_t
266arcmsr_attr_host_driver_version(struct class_device *cdev, char *buf) { 266arcmsr_attr_host_driver_version(struct class_device *cdev, char *buf) {
267 return snprintf(buf, PAGE_SIZE, 267 return snprintf(buf, PAGE_SIZE,
268 "ARCMSR: %s\n", 268 "%s\n",
269 ARCMSR_DRIVER_VERSION); 269 ARCMSR_DRIVER_VERSION);
270} 270}
271 271
@@ -274,7 +274,7 @@ arcmsr_attr_host_driver_posted_cmd(struct class_device *cdev, char *buf) {
274 struct Scsi_Host *host = class_to_shost(cdev); 274 struct Scsi_Host *host = class_to_shost(cdev);
275 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 275 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
276 return snprintf(buf, PAGE_SIZE, 276 return snprintf(buf, PAGE_SIZE,
277 "Current commands posted: %4d\n", 277 "%4d\n",
278 atomic_read(&acb->ccboutstandingcount)); 278 atomic_read(&acb->ccboutstandingcount));
279} 279}
280 280
@@ -283,7 +283,7 @@ arcmsr_attr_host_driver_reset(struct class_device *cdev, char *buf) {
283 struct Scsi_Host *host = class_to_shost(cdev); 283 struct Scsi_Host *host = class_to_shost(cdev);
284 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 284 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
285 return snprintf(buf, PAGE_SIZE, 285 return snprintf(buf, PAGE_SIZE,
286 "SCSI Host Resets: %4d\n", 286 "%4d\n",
287 acb->num_resets); 287 acb->num_resets);
288} 288}
289 289
@@ -292,7 +292,7 @@ arcmsr_attr_host_driver_abort(struct class_device *cdev, char *buf) {
292 struct Scsi_Host *host = class_to_shost(cdev); 292 struct Scsi_Host *host = class_to_shost(cdev);
293 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 293 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
294 return snprintf(buf, PAGE_SIZE, 294 return snprintf(buf, PAGE_SIZE,
295 "SCSI Aborts/Timeouts: %4d\n", 295 "%4d\n",
296 acb->num_aborts); 296 acb->num_aborts);
297} 297}
298 298
@@ -301,7 +301,7 @@ arcmsr_attr_host_fw_model(struct class_device *cdev, char *buf) {
301 struct Scsi_Host *host = class_to_shost(cdev); 301 struct Scsi_Host *host = class_to_shost(cdev);
302 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 302 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
303 return snprintf(buf, PAGE_SIZE, 303 return snprintf(buf, PAGE_SIZE,
304 "Adapter Model: %s\n", 304 "%s\n",
305 acb->firm_model); 305 acb->firm_model);
306} 306}
307 307
@@ -311,7 +311,7 @@ arcmsr_attr_host_fw_version(struct class_device *cdev, char *buf) {
311 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 311 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
312 312
313 return snprintf(buf, PAGE_SIZE, 313 return snprintf(buf, PAGE_SIZE,
314 "Firmware Version: %s\n", 314 "%s\n",
315 acb->firm_version); 315 acb->firm_version);
316} 316}
317 317
@@ -321,7 +321,7 @@ arcmsr_attr_host_fw_request_len(struct class_device *cdev, char *buf) {
321 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 321 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
322 322
323 return snprintf(buf, PAGE_SIZE, 323 return snprintf(buf, PAGE_SIZE,
324 "Reguest Lenth: %4d\n", 324 "%4d\n",
325 acb->firm_request_len); 325 acb->firm_request_len);
326} 326}
327 327
@@ -331,7 +331,7 @@ arcmsr_attr_host_fw_numbers_queue(struct class_device *cdev, char *buf) {
331 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 331 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
332 332
333 return snprintf(buf, PAGE_SIZE, 333 return snprintf(buf, PAGE_SIZE,
334 "Numbers of Queue: %4d\n", 334 "%4d\n",
335 acb->firm_numbers_queue); 335 acb->firm_numbers_queue);
336} 336}
337 337
@@ -341,7 +341,7 @@ arcmsr_attr_host_fw_sdram_size(struct class_device *cdev, char *buf) {
341 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 341 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
342 342
343 return snprintf(buf, PAGE_SIZE, 343 return snprintf(buf, PAGE_SIZE,
344 "SDRAM Size: %4d\n", 344 "%4d\n",
345 acb->firm_sdram_size); 345 acb->firm_sdram_size);
346} 346}
347 347
@@ -351,7 +351,7 @@ arcmsr_attr_host_fw_hd_channels(struct class_device *cdev, char *buf) {
351 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 351 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
352 352
353 return snprintf(buf, PAGE_SIZE, 353 return snprintf(buf, PAGE_SIZE,
354 "Hard Disk Channels: %4d\n", 354 "%4d\n",
355 acb->firm_hd_channels); 355 acb->firm_hd_channels);
356} 356}
357 357