diff options
author | Keith Packard <keithp@keithp.com> | 2018-03-16 14:52:09 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-03-16 14:52:09 -0700 |
commit | 1ea6188a9c78ab0642001110cac6c3b35e8ccc88 (patch) | |
tree | 86f52560b78a7cfb157af6c5400ec90cb0fca621 | |
parent | 788d02a3caf0f14f3c84ff6ae7e2a2fff302e91b (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>
-rw-r--r-- | ao-tools/ao-usbload/ao-usbload.c | 4 |
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); } |