summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-03-16 14:52:09 -0700
committerKeith Packard <keithp@keithp.com>2018-03-16 14:52:09 -0700
commit1ea6188a9c78ab0642001110cac6c3b35e8ccc88 (patch)
tree86f52560b78a7cfb157af6c5400ec90cb0fca621 /ao-tools
parent788d02a3caf0f14f3c84ff6ae7e2a2fff302e91b (diff)
ao-usbload: Flip product names in loader error message
I was reversing the 'target' vs 'image' names in the error message, leading to a bit of confusion. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/ao-usbload/ao-usbload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-tools/ao-usbload/ao-usbload.c b/ao-tools/ao-usbload/ao-usbload.c
index 758eb696..31ee138a 100644
--- a/ao-tools/ao-usbload/ao-usbload.c
+++ b/ao-tools/ao-usbload/ao-usbload.c
@@ -402,9 +402,9 @@ main (int argc, char **argv)
old_len = ucs2len(old_product);
if (new_len != old_len || memcmp(new_product, old_product, new_len * 2) != 0) {
fprintf(stderr, "USB product mismatch (device is ");
- putucs2str(new_product, stderr);
- fprintf(stderr, ", image is ");
putucs2str(old_product, stderr);
+ fprintf(stderr, ", image is ");
+ putucs2str(new_product, stderr);
fprintf(stderr, ")\n");
done(cc, 1);
}