summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-06-12 03:29:58 +0200
committerDenys Vlasenko2010-06-12 03:29:58 +0200
commit53e2f38b6963958d9a4fc47bc71d7c1afbdcd9d5 (patch)
treee67905226263ea6f392c895e870c23f932481fdc
parentaa30efcc070efb1e818b071a1d00763cb5889c66 (diff)
downloadbusybox-53e2f38b6963958d9a4fc47bc71d7c1afbdcd9d5.zip
busybox-53e2f38b6963958d9a4fc47bc71d7c1afbdcd9d5.tar.gz
tftp: make message about 512 byte block less confusing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index ab4e259..f895d19 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -582,7 +582,8 @@ static int tftp_protocol(
* "An option not acknowledged by the server
* must be ignored by the client and server
* as if it were never requested." */
- bb_error_msg("server only supports blocksize of 512");
+ if (blksize != TFTP_BLKSIZE_DEFAULT)
+ bb_error_msg("falling back to blocksize "TFTP_BLKSIZE_DEFAULT_STR);
blksize = TFTP_BLKSIZE_DEFAULT;
io_bufsize = TFTP_BLKSIZE_DEFAULT + 4;
}