Commit 8020f933 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] printks in drivers/scsi/hosts.c missing return

Trivial but annoying: two printk() calls in drivers/scsi/hosts.c are
missing '\n'

Also, for some reason I have not yet investigated, shost_tp->name is
NULL here.  This should not be, eh?  If it can be, we should do
something to tidy up the printing of it.
parent e14739ee
...@@ -488,14 +488,14 @@ int scsi_register_host(Scsi_Host_Template *shost_tp) ...@@ -488,14 +488,14 @@ int scsi_register_host(Scsi_Host_Template *shost_tp)
if (!shost_tp->max_sectors) { if (!shost_tp->max_sectors) {
printk(KERN_WARNING printk(KERN_WARNING
"scsi HBA driver %s didn't set max_sectors, " "scsi HBA driver %s didn't set max_sectors, "
"please fix the template", shost_tp->name); "please fix the template\n", shost_tp->name);
shost_tp->max_sectors = 1024; shost_tp->max_sectors = 1024;
} }
if (!shost_tp->release) { if (!shost_tp->release) {
printk(KERN_WARNING printk(KERN_WARNING
"scsi HBA driver %s didn't set a release method, " "scsi HBA driver %s didn't set a release method, "
"please fix the template", shost_tp->name); "please fix the template\n", shost_tp->name);
shost_tp->release = &scsi_host_legacy_release; shost_tp->release = &scsi_host_legacy_release;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment