drivers/parisc/pdc_stable.c: use WARN
Use WARN rather than printk followed by WARN_ON(1), for conciseness. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
3fad9b8d59
commit
93c3e913e1
1 changed files with 2 additions and 4 deletions
|
@ -212,12 +212,10 @@ pdcspath_store(struct pdcspath_entry *entry)
|
||||||
entry, devpath, entry->addr);
|
entry, devpath, entry->addr);
|
||||||
|
|
||||||
/* addr, devpath and count must be word aligned */
|
/* addr, devpath and count must be word aligned */
|
||||||
if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) {
|
if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK)
|
||||||
printk(KERN_ERR "%s: an error occurred when writing to PDC.\n"
|
WARN(1, KERN_ERR "%s: an error occurred when writing to PDC.\n"
|
||||||
"It is likely that the Stable Storage data has been corrupted.\n"
|
"It is likely that the Stable Storage data has been corrupted.\n"
|
||||||
"Please check it carefully upon next reboot.\n", __func__);
|
"Please check it carefully upon next reboot.\n", __func__);
|
||||||
WARN_ON(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* kobject is already registered */
|
/* kobject is already registered */
|
||||||
entry->ready = 2;
|
entry->ready = 2;
|
||||||
|
|
Loading…
Reference in a new issue