projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
788d02a
)
ao-usbload: Flip product names in loader error message
author
Keith Packard
<keithp@keithp.com>
Fri, 16 Mar 2018 21:52:09 +0000
(14:52 -0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 16 Mar 2018 21:52:09 +0000
(14:52 -0700)
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>
ao-tools/ao-usbload/ao-usbload.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-usbload/ao-usbload.c
b/ao-tools/ao-usbload/ao-usbload.c
index 758eb6961ca21a2acd5d525bf98109ce1c103a9d..31ee138a3679584779eeda813997667b8ba3ffd9 100644
(file)
--- 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);
}