summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2022-08-25 01:52:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-01 18:15:50 +0200
commit6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8 (patch)
treee3ef481fb29259726a8ce96de2fc6f85dfd6db61 /drivers/base/core.c
parentclass: use IS_ERR_OR_NULL() helper in class_unregister() (diff)
downloadlinux-6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8.tar.xz
linux-6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8.zip
drivers: base: Print error code on synthetic uevent failure
If we're going to log the failure, we might as well log the return code too. Signed-off-by: Brian Norris <briannorris@chromium.org> Link: https://lore.kernel.org/r/20220824165213.1.Ifdb98af3d0c23708a11d8d5ae5697bdb7e96a3cc@changeid Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 753e7cca0f40..fd0410329046 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -2509,7 +2509,7 @@ static ssize_t uevent_store(struct device *dev, struct device_attribute *attr,
rc = kobject_synth_uevent(&dev->kobj, buf, count);
if (rc) {
- dev_err(dev, "uevent: failed to send synthetic uevent\n");
+ dev_err(dev, "uevent: failed to send synthetic uevent: %d\n", rc);
return rc;
}