summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/hwstub/lib/hwstub.c3
-rw-r--r--utils/hwstub/tools/hwstub_load.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/utils/hwstub/lib/hwstub.c b/utils/hwstub/lib/hwstub.c
index 036c97a5d9..a2af2f26d4 100644
--- a/utils/hwstub/lib/hwstub.c
+++ b/utils/hwstub/lib/hwstub.c
@@ -190,7 +190,8 @@ int hwstub_write(struct hwstub_device_t *dev, uint32_t addr, void *buf, size_t s
int cnt = 0;
while(sz > 0)
{
- int xfer = _hwstub_write(dev, addr, buf, MIN(sz, dev->buf_sz - sizeof(struct hwstub_write_req_t)));
+ int xfer = _hwstub_write(dev, addr, buf, MIN(sz, dev->buf_sz -
+ sizeof(struct hwstub_write_req_t)));
if(xfer < 0)
return xfer;
sz -= xfer;
diff --git a/utils/hwstub/tools/hwstub_load.cpp b/utils/hwstub/tools/hwstub_load.cpp
index f1d17b79d2..119f6d7c58 100644
--- a/utils/hwstub/tools/hwstub_load.cpp
+++ b/utils/hwstub/tools/hwstub_load.cpp
@@ -269,7 +269,7 @@ int main(int argc, char **argv)
ret = hwstub_rw_mem(hwdev, 0, addr, buffer, size);
if(ret != (int)size)
{
- fprintf(stderr, "Image write failed\n");
+ fprintf(stderr, "Image write failed: %d\n", ret);
goto Lerr;
}
hwstub_jump(hwdev, addr);