mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
firehose: Provide progress bar on read as well
Rather than letting the user wait in silence for read operations add a progress bar, in the same way as it's done for writing. Make it conditional on the "quiet" variable, to avoid spamming the log when the GPT parser etc kicks in. Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
committed by
Bjorn Andersson
parent
08c4657e8d
commit
d561ed5bd2
@@ -651,6 +651,9 @@ static int firehose_issue_read(struct qdl_device *qdl, struct read_op *read_op,
|
||||
// on mac/linux, every other response is empty
|
||||
expect_empty = true;
|
||||
#endif
|
||||
|
||||
if (!quiet)
|
||||
ux_progress("%s", read_op->num_sectors - left, read_op->num_sectors, read_op->filename);
|
||||
}
|
||||
|
||||
ret = firehose_read(qdl, 10000, firehose_generic_parser, NULL);
|
||||
|
||||
Reference in New Issue
Block a user