Improved error messages on EEPROM writing.
--- a/master/slave.c Mon Mar 03 16:24:59 2008 +0000
+++ b/master/slave.c Tue Mar 04 08:52:39 2008 +0000
@@ -932,7 +932,8 @@
}
if (size % 2) {
- EC_ERR("EEPROM data size is odd! Dropping.\n");
+ EC_ERR("EEPROM data size is odd (%u bytes)! SII data must be"
+ " word-aligned. Dropping.\n", size);
return -EINVAL;
}
@@ -944,7 +945,9 @@
request.word_size = size / 2;
if (request.word_size < 0x0041) {
- EC_ERR("EEPROM data too short! Dropping.\n");
+ EC_ERR("EEPROM data too short (%u words)! Mimimum is"
+ " 40 fixed words + 1 delimiter. Dropping.\n",
+ request.word_size);
return -EINVAL;
}