tftp: make message about 512 byte block less confusing
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 12 Jun 2010 01:29:58 +0000 (03:29 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 12 Jun 2010 01:29:58 +0000 (03:29 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tftp.c

index ab4e259..f895d19 100644 (file)
@@ -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;
                }