mirror of
https://github.com/linux-msm/sk8brd.git
synced 2026-02-25 13:13:15 -08:00
lib: use write! to send image percentage
Use write! instead of writeln! to remove extra linewraps. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
committed by
Konrad Dybcio
parent
f49bcf417f
commit
e901247cd2
@@ -96,7 +96,7 @@ pub fn send_image(write_sink: &mut impl Write, buf: &[u8]) {
|
||||
let percent_done = 100 * bytes_sent / buf.len();
|
||||
|
||||
if percent_done != last_percent_done {
|
||||
writeln!(stdout(), " Sending image: {}%\r", percent_done).unwrap();
|
||||
write!(stdout(), " Sending image: {}%\r", percent_done).unwrap();
|
||||
}
|
||||
|
||||
send_msg(write_sink, Sk8brdMsgs::MsgFastbootDownload, chunk);
|
||||
|
||||
Reference in New Issue
Block a user