lkml.org 
[lkml]   [2018]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 3/3] driver-core: print bus registration error value
Date
Signed-off-by: Florian Schmaus <flo@geekplace.eu>
---
drivers/base/driver.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index afd5b08b7677..c68d35139c0f 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -149,8 +149,9 @@ int driver_register(struct device_driver *drv)
struct device_driver *other;

if (!drv->bus->p) {
- printk(KERN_ERR "Driver '%s' was unable to register bus_type\n",
- drv->name);
+ printk(KERN_ERR "Driver '%s' was unable to register bus_type "
+ "(error: %d)\n",
+ drv->name, drv->bus->bus_register_retval);
return -EINVAL;
}

--
2.16.1
\
 
 \ /
  Last update: 2018-05-15 15:52    [W:0.298 / U:4.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site