net: nfs: reduce the number of printed hashes during data transfer
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Mar 2020 13:50:08 +0000 (14:50 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 10:04:04 +0000 (11:04 +0100)
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 <m.szyprowski@samsung.com>
Change-Id: I142d1c646b2232eb505301a88b1ff051ac2bc19c

net/nfs.c

index c6c400b..6b81c41 100644 (file)
--- 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) {