mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-07 12:21:49 +08:00
Applied 0011-Reduced-printing-to-avoid-syslog-spam.patch
This commit is contained in:
@@ -266,8 +266,6 @@ int ecrt_master_get_slave(ec_master_t *master, uint16_t slave_position,
|
||||
|
||||
ret = ioctl(master->fd, EC_IOCTL_SLAVE, &data);
|
||||
if (EC_IOCTL_IS_ERROR(ret)) {
|
||||
EC_PRINT_ERR("Failed to get slave info: %s\n",
|
||||
strerror(EC_IOCTL_ERRNO(ret)));
|
||||
return -EC_IOCTL_ERRNO(ret);
|
||||
}
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ static ATTRIBUTES int ec_ioctl_slave(
|
||||
if (!(slave = ec_master_find_slave_const(
|
||||
master, 0, data.position))) {
|
||||
up(&master->master_sem);
|
||||
EC_MASTER_ERR(master, "Slave %u does not exist!\n", data.position);
|
||||
EC_MASTER_DBG(master, 1, "Slave %u does not exist!\n", data.position);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user