device-led: Fix typo in hal module enum for getting stub proc name 95/321795/1 accepted/tizen/unified/20250331.083314 accepted/tizen/unified/x/20250401.051146
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 28 Mar 2025 07:23:32 +0000 (16:23 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 28 Mar 2025 07:42:20 +0000 (16:42 +0900)
In the function that connects to the stub of device-led module for IPC,
it gets stub proc name before establishing connection.
There were some typos:
The enum of device-led is HAL_MODULE_DEVICE_LED but it was
HAL_MODULE_DEVICE_DISPLAY.
In the log message, it should be "device-led" but
"device-display".
Despite of this typo, the IPC had no error since the stub proc name of
device-display and device-led was same.

But this typo might cause serious error, it should be fixed.

Change-Id: If58e6a8c35aa8f181d7104b36491bc7e99fad99c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/hal-api-device-led-ipc.c

index a1655c4e2b19a23f0c5592371c53cf03ee10891f..909866066e9c56d41adeaceeb8ccd7f6afb42424 100644 (file)
@@ -61,9 +61,9 @@ int hal_device_led_ipc_get_backend(void)
        if (g_hal_device_led_ipc_funcs_h)
                return 0;
 
-       ret = hal_common_get_stub_proc_name(HAL_MODULE_DEVICE_DISPLAY, &stub_proc_name);
+       ret = hal_common_get_stub_proc_name(HAL_MODULE_DEVICE_LED, &stub_proc_name);
        if (ret != 0) {
-               _E("Failed to get stub proc name for device-display: ret(%d)", ret);
+               _E("Failed to get stub proc name for device-led: ret(%d)", ret);
                return ret;
        }