Make sure success and failure include enough info to debug what
happened.
Signed-off-by: Keith Packard <keithp@keithp.com>
try {
version = get_int(hexfile, ao_romconfig_version, 2, adjust);
check = get_int(hexfile, ao_romconfig_check, 2, adjust);
try {
version = get_int(hexfile, ao_romconfig_version, 2, adjust);
check = get_int(hexfile, ao_romconfig_check, 2, adjust);
- System.out.printf("adjust %d version %x check %x\n", adjust, version, check);
if (check == (~version & 0xffff)) {
if (check == (~version & 0xffff)) {
+ System.out.printf("adjust %d version %x check %x success\n", adjust, version, check);
switch (version) {
case 2:
case 1:
switch (version) {
case 2:
case 1:
+ } else {
+ System.out.printf("adjust %d version %x check %x fail\n", adjust, version, check);
}
} catch (ArrayIndexOutOfBoundsException aie) {
}
} catch (ArrayIndexOutOfBoundsException aie) {
- System.out.printf("adjust %d failed\n", adjust);
+ System.out.printf("adjust %d out of bounds\n", adjust);