Improved buffer overflow messages.
--- a/master/ioctl.c Wed Dec 06 10:09:50 2017 +0100
+++ b/master/ioctl.c Wed Dec 13 15:39:13 2017 +0100
@@ -3876,7 +3876,7 @@
ret = -EIO;
} else {
if (request.data_size > io.buffer_size) {
- EC_MASTER_ERR(master, "Buffer too small.\n");
+ EC_SLAVE_ERR(slave, "%s(): Buffer too small.\n", __func__);
ec_foe_request_clear(&request);
return -EOVERFLOW;
}
--- a/master/master.c Wed Dec 06 10:09:50 2017 +0100
+++ b/master/master.c Wed Dec 13 15:39:13 2017 +0100
@@ -3077,7 +3077,7 @@
}
} else {
if (request.data_size > target_size) {
- EC_MASTER_ERR(master, "Buffer too small.\n");
+ EC_SLAVE_ERR(slave, "%s(): Buffer too small.\n", __func__);
ret = -EOVERFLOW;
}
else {
@@ -3235,7 +3235,7 @@
ret = -EIO;
} else { // success
if (request.data_size > target_size) {
- EC_MASTER_ERR(master, "Buffer too small.\n");
+ EC_SLAVE_ERR(slave, "%s(): Buffer too small.\n", __func__);
ret = -EOVERFLOW;
}
else { // data fits in buffer