Add Signal Handling for Module State Changed
[platform/core/connectivity/net-config.git] / src / network-monitor.c
index 21e6de7..4d9b85c 100755 (executable)
@@ -60,8 +60,8 @@ int netconfig_ethernet_cable_plugin_status_check()
        errno = 0;
        rv = fscanf(fd, "%d", &ret);
        if (rv < 0) {
-               strerror_r(errno, error_buf, MAX_SIZE_ERROR_BUFFER);
-               ERR("Error! Failed to read from file, rv:[%d], error:[%s]", rv, error_buf);
+               ERR("Error! Failed to read from file, rv:[%d], error:[%s]",
+                               rv, strerror_r(errno, error_buf, MAX_SIZE_ERROR_BUFFER));
                fclose(fd);
                return -1;
        }