diff options
author | Brian Norris <briannorris@chromium.org> | 2022-08-25 01:52:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-01 18:15:50 +0200 |
commit | 6bb7ea3afd3eaae95eda6ef5589c3087f2cd70d8 (patch) | |
tree | e3ef481fb29259726a8ce96de2fc6f85dfd6db61 /drivers/base | |
parent | class: use IS_ERR_OR_NULL() helper in class_unregister() (diff) | |
download | linux-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')
-rw-r--r-- | drivers/base/core.c | 2 |
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; } |