projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9628e0
)
drivers: base: Print error code on synthetic uevent failure
author
Brian Norris
<briannorris@chromium.org>
Wed, 24 Aug 2022 23:52:16 +0000
(16:52 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 1 Sep 2022 16:15:50 +0000
(18:15 +0200)
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>
drivers/base/core.c
patch
|
blob
|
history
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index
753e7cc
..
fd04103
100644
(file)
--- 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;
}