mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] bbu: parameters are inverted in error message
@ 2016-08-03  9:53 Renaud Barbier
  2016-08-15  8:16 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2016-08-03  9:53 UTC (permalink / raw)
  To: barebox

The error message warning the user that the image is too big for
the device has its parameters in the wrong order. Swap the two
parameters so that the output makes sense.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 common/bbu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/bbu.c b/common/bbu.c
index 1b22139..c5dda8c 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -307,8 +307,8 @@ static int bbu_std_file_handler(struct bbu_handler *handler,
 		oflags |= O_CREAT;
 	} else {
 		if (!S_ISREG(s.st_mode) && s.st_size < data->len) {
-			printf("Image (%lld) is too big for device (%zd)\n",
-					s.st_size, data->len);
+			printf("Image (%zd) is too big for device (%lld)\n",
+					data->len, s.st_size);
 		}
 	}
 
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-15  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03  9:53 [PATCH] bbu: parameters are inverted in error message Renaud Barbier
2016-08-15  8:16 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox