firehose: add debug output for raw packets

Add detailed output for binary raw packets sent to the target,
displaying the filename and size.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
This commit is contained in:
Igor Opaniuk
2025-05-24 10:54:18 +02:00
parent 672abb1e81
commit 4e944d29da

View File

@@ -423,6 +423,10 @@ static int firehose_program(struct qdl_device *qdl, struct program *program, int
lseek(fd, (off_t) program->file_offset * program->sector_size, SEEK_SET);
left = num_sectors;
ux_debug("FIREHOSE RAW BINARY WRITE: %s, %d bytes\n",
program->filename, program->sector_size * num_sectors);
while (left > 0) {
chunk_size = MIN(max_payload_size / program->sector_size, left);