diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2016-08-03 10:53:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-18 08:18:32 +0200 |
commit | 39391164e52ae3a8d70e1d7d06f25b893363fab9 (patch) | |
tree | c8354453fdf01b1ab75d4568ef3ffe86e9b7d585 | |
parent | 24396d8cb2ed315c8b389d7fed1b7375cb941548 (diff) | |
download | barebox-39391164e52ae3a8d70e1d7d06f25b893363fab9.tar.gz barebox-39391164e52ae3a8d70e1d7d06f25b893363fab9.tar.xz |
bbu: parameters are inverted in error message
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/bbu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bbu.c b/common/bbu.c index 1b22139908..c5dda8c8bd 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); } } |