From: Marek Szyprowski Date: Tue, 17 Mar 2020 13:50:08 +0000 (+0100) Subject: net: nfs: reduce the number of printed hashes during data transfer X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a0c0c616842721bbd899cfaf5b226fc2f229c54;p=platform%2Fkernel%2Fu-boot.git net: nfs: reduce the number of printed hashes during data transfer Downloading large images (about 1GiB) prints a lots of hash characters, so it is hard to follow what is happenings. Reduce the amount of printed progress marks by a magnitude. Signed-off-by: Marek Szyprowski Change-Id: I142d1c646b2232eb505301a88b1ff051ac2bc19c --- diff --git a/net/nfs.c b/net/nfs.c index c6c400bb5b..6b81c412ad 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -691,9 +691,9 @@ static int nfs_read_reply(uchar *pkt, unsigned len) } if ((nfs_offset != 0) && !((nfs_offset) % - (NFS_READ_SIZE / 2 * 10 * HASHES_PER_LINE))) + (NFS_READ_SIZE / 2 * 256 * HASHES_PER_LINE))) puts("\n\t "); - if (!(nfs_offset % ((NFS_READ_SIZE / 2) * 10))) + if (!(nfs_offset % ((NFS_READ_SIZE / 2) * 256))) putc('#'); if (supported_nfs_versions & NFSV2_FLAG) {