Skip to content

Commit

Permalink
Log clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
henols committed Feb 11, 2025
1 parent 3b9458c commit 8057266
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/eprom_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ bool eprom_read(firestarter_handle_t* handle) {
return true;
}

log_data_format("Read data from address 0x%lx to 0x%lx", handle->address, handle->address + handle->data_size);
log_data_format("Read: 0x%04lx - 0x%04lx", handle->address, handle->address + handle->data_size);
rurp_communication_write(handle->data_buffer, handle->data_size);
// debug_format("Read buffer: %.10s...", handle->data_buffer);


handle->address += handle->data_size;
if (handle->address > handle->mem_size - 1) {
while (!op_check_for_ok(handle));
Expand Down Expand Up @@ -79,7 +78,7 @@ bool eprom_write(firestarter_handle_t* handle) {
return true;
}

log_ok_format("Data written to address %lx - %lx", handle->address, handle->address + handle->data_size);
log_ok_format("Write: 0x%04lx - 0x%04lx", handle->address, handle->address + handle->data_size);

handle->address += handle->data_size;
if (handle->address >= handle->mem_size) {
Expand Down Expand Up @@ -127,7 +126,7 @@ bool eprom_verify(firestarter_handle_t* handle) {
return true;
}

log_ok_format("Data verified address %lx - %lx", handle->address, handle->address + handle->data_size);
log_ok_format("Verify: 0x%04lx - 0x%04lx", handle->address, handle->address + handle->data_size);

handle->address += handle->data_size;
if (handle->address >= handle->mem_size) {
Expand Down Expand Up @@ -155,7 +154,7 @@ bool eprom_erase(firestarter_handle_t* handle) {
}
}
else {
log_error_const("Erase not supported");
log_error_const("Not supported");
}
return true;
}
Expand All @@ -175,7 +174,7 @@ bool eprom_check_chip_id(firestarter_handle_t* handle) {
}
}
else {
log_error_const("Check Chip ID is not supported");
log_error_const("Not supported");
}
return true;
}
Expand All @@ -191,7 +190,7 @@ bool eprom_blank_check(firestarter_handle_t* handle) {
}
}
else {
log_error_const("Blank check is not supported");
log_error_const("Not supported");
}
return true;
}
Expand Down

0 comments on commit 8057266

Please sign in to comment.