equal
deleted
inserted
replaced
64 } |
64 } |
65 |
65 |
66 total_size = EC_MBOX_HEADER_SIZE + size; |
66 total_size = EC_MBOX_HEADER_SIZE + size; |
67 |
67 |
68 if (unlikely(total_size > slave->configured_rx_mailbox_size)) { |
68 if (unlikely(total_size > slave->configured_rx_mailbox_size)) { |
69 EC_ERR("Data size (%u) does not fit in mailbox (%u)!\n", |
69 EC_ERR("Data size (%zu) does not fit in mailbox (%u)!\n", |
70 total_size, slave->configured_rx_mailbox_size); |
70 total_size, slave->configured_rx_mailbox_size); |
71 return ERR_PTR(-EOVERFLOW); |
71 return ERR_PTR(-EOVERFLOW); |
72 } |
72 } |
73 |
73 |
74 ec_datagram_zero(datagram); |
74 ec_datagram_zero(datagram); |