From 4e944d29dae45bb9a1c154cbc3b054548db9d56d Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Sat, 24 May 2025 10:54:18 +0200 Subject: [PATCH] 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 --- firehose.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firehose.c b/firehose.c index 97c0856..65ece95 100644 --- a/firehose.c +++ b/firehose.c @@ -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);