commit | d3bc5c326879a836346f69dbe5d1d2a43985ead5 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Fri Sep 24 23:06:41 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | 514185230a0d70a9a7aed06c32061fde16e59e0b | |
parent | ea5b2b3ad11d2c3fd8486f6a51ed89ef7313353c [diff] |
tools: kwboot: Refactor and fix writing buffer There are 3 instances in kwboot.c where we need to write() a given buffer whole (iteratively writing until all data are written), and 2 of those instances are wrong, for they do not increment the buffer pointer. Refactor the code into a new function kwboot_write() where it is fixed. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>