From 4918aa4633e0c702e2d3981a8c453c79cb1c9bff Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 17 Mar 2020 14:50:08 +0100 Subject: [PATCH] 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 --- net/nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index 64f43b5..6f83a48 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -731,9 +731,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 (choosen_nfs_version != NFS_V3) { -- 2.7.4