]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: wwan: iosm: fix uevent reporting
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 1 Jul 2021 15:07:06 +0000 (20:37 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:04:41 +0000 (13:04 -0700)
Change uevent env variable name to IOSM_EVENT & correct
reporting format to key=value pair.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_uevent.c

index 2229d752926c675d045bee768ac2e9b6bc88eb9e..d12188ffed7e4f93f488d024f54c153a5079af5b 100644 (file)
@@ -37,7 +37,7 @@ void ipc_uevent_send(struct device *dev, char *uevent)
 
        /* Store the device and event information */
        info->dev = dev;
-       snprintf(info->uevent, MAX_UEVENT_LEN, "%s: %s", dev_name(dev), uevent);
+       snprintf(info->uevent, MAX_UEVENT_LEN, "IOSM_EVENT=%s", uevent);
 
        /* Schedule uevent in process context using work queue */
        schedule_work(&info->work);