about summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:17:07 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:17:07 +0200
commitc2f9fa727174088537033c32680afc858d841110 (patch)
treeb036e481b0a55deabcdb761d827d1694640d81f3 /mscan.c
parent019a6680f5581e18e820e98373dcba00d9bb77fe (diff)
downloadmblaze-c2f9fa727174088537033c32680afc858d841110.tar.gz
mblaze-c2f9fa727174088537033c32680afc858d841110.tar.xz
mblaze-c2f9fa727174088537033c32680afc858d841110.zip
mscan: silence %b when !msg
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mscan.c b/mscan.c
index 1148a31..6424f8e 100644
--- a/mscan.c
+++ b/mscan.c
@@ -367,9 +367,13 @@ oneline(char *file)
 		case 'b':
 			{
 				struct stat st;
-				if (stat(file, &st) != 0)
-					st.st_size = 0;
-				print_human(st.st_size);
+				if (msg) {
+					if (stat(file, &st) != 0)
+						st.st_size = 0;
+					print_human(st.st_size);
+				} else {
+					printf("    ");
+				}
 				wleft -= 5;
 			}
 			break;