summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2022-08-25 02:52:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-01 19:15:50 +0300
commit6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8 (patch)
treee3ef481fb29259726a8ce96de2fc6f85dfd6db61 /drivers/base
parente9628e015fe205f10766f031f17e217f85650570 (diff)
downloadlinux-6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8.tar.xz
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')
-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;
}