Add a warning for uninitialized logbook entries.

This commit is contained in:
Jef Driesen 2010-12-29 22:21:42 +01:00
parent 23836fe625
commit 93cc4c8d0b

View File

@ -365,6 +365,7 @@ oceanic_common_device_foreach (device_t *abstract, dive_callback_t callback, voi
// This appears to happen on some devices, and we attempt to
// fix this here.
if (array_isequal (logbooks + current, PAGESIZE / 2, 0xFF)) {
WARNING("Uninitialized logbook entries detected!");
begin = current + PAGESIZE / 2;
abort = 1;
break;