summaryrefslogtreecommitdiffstats
path: root/utils/hwstub
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-09-08 10:50:48 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-08 10:50:48 +0200
commit6cc057f180acfa90d673f03709801388ec415dee (patch)
tree63b41e2f3252b380f354e238b77b1eb40e083946 /utils/hwstub
parent3c558127b83d162636fb27d2ded1f02c88413e37 (diff)
downloadrockbox-6cc057f180acfa90d673f03709801388ec415dee.tar.gz
rockbox-6cc057f180acfa90d673f03709801388ec415dee.zip
hwstub: trivial changes
Change-Id: Iacb1721db1ae59d5f359d244fd68234915e611cf
Diffstat (limited to 'utils/hwstub')
-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);