ao-usbload: Flip product names in loader error message
authorKeith Packard <keithp@keithp.com>
Fri, 16 Mar 2018 21:52:09 +0000 (14:52 -0700)
committerKeith 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

index 758eb69..31ee138 100644 (file)
@@ -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);
                        }