master/mailbox.c
changeset 1543 373cd456dc26
parent 1492 c44308ec691b
child 1550 81a16ba13ae6
equal deleted inserted replaced
1528:dbc617badc33 1543:373cd456dc26
    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);