Commit 25958ce3 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: vme: vme.c: fix minor coding style issues

Fix up some broken printk strings that were spanning multiple lines,
making it hard to search for them.

Cc: Manohar Vanga <manohar.vanga@cern.ch>
Cc: Martyn Welch <martyn.welch@ge.com>
Cc: "Emilio G. Cota" <cota@braap.org>
Cc: Dan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8af2c75a
...@@ -98,14 +98,13 @@ void *vme_alloc_consistent(struct vme_resource *resource, size_t size, ...@@ -98,14 +98,13 @@ void *vme_alloc_consistent(struct vme_resource *resource, size_t size,
} }
if (bridge->parent == NULL) { if (bridge->parent == NULL) {
printk(KERN_ERR "Dev entry NULL for" printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name);
" bridge %s\n", bridge->name);
return NULL; return NULL;
} }
if (bridge->alloc_consistent == NULL) { if (bridge->alloc_consistent == NULL) {
printk(KERN_ERR "alloc_consistent not supported by" printk(KERN_ERR "alloc_consistent not supported by bridge %s\n",
" bridge %s\n", bridge->name); bridge->name);
return NULL; return NULL;
} }
...@@ -133,14 +132,13 @@ void vme_free_consistent(struct vme_resource *resource, size_t size, ...@@ -133,14 +132,13 @@ void vme_free_consistent(struct vme_resource *resource, size_t size,
} }
if (bridge->parent == NULL) { if (bridge->parent == NULL) {
printk(KERN_ERR "Dev entry NULL for" printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name);
" bridge %s\n", bridge->name);
return; return;
} }
if (bridge->free_consistent == NULL) { if (bridge->free_consistent == NULL) {
printk(KERN_ERR "free_consistent not supported by" printk(KERN_ERR "free_consistent not supported by bridge %s\n",
" bridge %s\n", bridge->name); bridge->name);
return; return;
} }
...@@ -747,15 +745,13 @@ struct vme_dma_attr *vme_dma_pattern_attribute(u32 pattern, u32 type) ...@@ -747,15 +745,13 @@ struct vme_dma_attr *vme_dma_pattern_attribute(u32 pattern, u32 type)
attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) { if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes " printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
"structure\n");
goto err_attr; goto err_attr;
} }
pattern_attr = kmalloc(sizeof(struct vme_dma_pattern), GFP_KERNEL); pattern_attr = kmalloc(sizeof(struct vme_dma_pattern), GFP_KERNEL);
if (pattern_attr == NULL) { if (pattern_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for pattern " printk(KERN_ERR "Unable to allocate memory for pattern attributes\n");
"attributes\n");
goto err_pat; goto err_pat;
} }
...@@ -786,15 +782,13 @@ struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t address) ...@@ -786,15 +782,13 @@ struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t address)
attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) { if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes " printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
"structure\n");
goto err_attr; goto err_attr;
} }
pci_attr = kmalloc(sizeof(struct vme_dma_pci), GFP_KERNEL); pci_attr = kmalloc(sizeof(struct vme_dma_pci), GFP_KERNEL);
if (pci_attr == NULL) { if (pci_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for pci " printk(KERN_ERR "Unable to allocate memory for pci attributes\n");
"attributes\n");
goto err_pci; goto err_pci;
} }
...@@ -826,15 +820,13 @@ struct vme_dma_attr *vme_dma_vme_attribute(unsigned long long address, ...@@ -826,15 +820,13 @@ struct vme_dma_attr *vme_dma_vme_attribute(unsigned long long address,
attributes = kmalloc( attributes = kmalloc(
sizeof(struct vme_dma_attr), GFP_KERNEL); sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) { if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes " printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
"structure\n");
goto err_attr; goto err_attr;
} }
vme_attr = kmalloc(sizeof(struct vme_dma_vme), GFP_KERNEL); vme_attr = kmalloc(sizeof(struct vme_dma_vme), GFP_KERNEL);
if (vme_attr == NULL) { if (vme_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for vme " printk(KERN_ERR "Unable to allocate memory for vme attributes\n");
"attributes\n");
goto err_vme; goto err_vme;
} }
...@@ -982,8 +974,8 @@ void vme_irq_handler(struct vme_bridge *bridge, int level, int statid) ...@@ -982,8 +974,8 @@ void vme_irq_handler(struct vme_bridge *bridge, int level, int statid)
if (call != NULL) if (call != NULL)
call(level, statid, priv_data); call(level, statid, priv_data);
else else
printk(KERN_WARNING "Spurilous VME interrupt, level:%x, " printk(KERN_WARNING "Spurilous VME interrupt, level:%x, vector:%x\n",
"vector:%x\n", level, statid); level, statid);
} }
EXPORT_SYMBOL(vme_irq_handler); EXPORT_SYMBOL(vme_irq_handler);
...@@ -1112,8 +1104,7 @@ struct vme_resource *vme_lm_request(struct vme_dev *vdev) ...@@ -1112,8 +1104,7 @@ struct vme_resource *vme_lm_request(struct vme_dev *vdev)
struct vme_lm_resource, list); struct vme_lm_resource, list);
if (lm == NULL) { if (lm == NULL) {
printk(KERN_ERR "Registered NULL Location Monitor " printk(KERN_ERR "Registered NULL Location Monitor resource\n");
"resource\n");
continue; continue;
} }
......
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