mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
pcmcia: use dev_printk for cs_error()
Use dev_printk() in cs_error()-based error reporting. While this function-turned-macro will hopefully go away soon, using dev_printk simplifies the code much. Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
9c8b7965f5
commit
79ba675727
2 changed files with 30 additions and 33 deletions
|
|
@ -249,7 +249,18 @@ struct pcmcia_device {
|
|||
#define handle_to_dev(handle) (handle->dev)
|
||||
|
||||
/* error reporting */
|
||||
void cs_error(struct pcmcia_device *handle, int func, int ret);
|
||||
|
||||
const char *pcmcia_error_func(int func);
|
||||
const char *pcmcia_error_ret(int ret);
|
||||
|
||||
#define cs_error(p_dev, func, ret) \
|
||||
{ \
|
||||
dev_printk(KERN_NOTICE, &p_dev->dev, \
|
||||
"%s : %s\n", \
|
||||
pcmcia_error_func(func), \
|
||||
pcmcia_error_ret(ret)); \
|
||||
}
|
||||
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _LINUX_DS_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue