Skip to content

Commit 6bb7ea3

Browse files
computersforpeacegregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/20220824165213.1.Ifdb98af3d0c23708a11d8d5ae5697bdb7e96a3cc@changeid Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e9628e0 commit 6bb7ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ static ssize_t uevent_store(struct device *dev, struct device_attribute *attr,
25092509
rc = kobject_synth_uevent(&dev->kobj, buf, count);
25102510

25112511
if (rc) {
2512-
dev_err(dev, "uevent: failed to send synthetic uevent\n");
2512+
dev_err(dev, "uevent: failed to send synthetic uevent: %d\n", rc);
25132513
return rc;
25142514
}
25152515

0 commit comments

Comments
 (0)