Commit 6bb7ea3a authored by Brian Norris's avatar Brian Norris Committed by Greg Kroah-Hartman
Browse files

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: default avatarBrian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20220824165213.1.Ifdb98af3d0c23708a11d8d5ae5697bdb7e96a3cc@changeid


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9628e01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}