[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[snapshot/master] fsck/check1: verbosity tweaks



---
 fsck/check-1/hash |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fsck/check-1/hash b/fsck/check-1/hash
index 7467041..eb2c946 100755
--- a/fsck/check-1/hash
+++ b/fsck/check-1/hash
@@ -50,20 +50,20 @@ class HashingThread(threading.Thread):
 
             (path, filename) = item
 
-            if verbose >= 5: print "%s: starting"%(filename)
+            if verbose >= 6: print "%s: starting"%(filename)
             try:
                 actual_hash = hasher.hash_file(os.path.join(path, filename))
             except Exception, e:
                 errors.append((filename, 'Exception: %s'%(e)))
-                if verbose >= 3: print "%s: Exception (%s)"%(filename, e)
+                if verbose >= 2: print "%s: Exception (%s)"%(filename, e)
                 continue
 
             if actual_hash != filename:
                 errors.append((filename, 'Hash mismatch (%s)'%(actual_hash)))
-                if verbose >= 3: print "%s: Hash mismatch (%s)"%(filename, actual_hash)
+                if verbose >= 2: print "%s: Hash mismatch (%s)"%(filename, actual_hash)
             else:
                 if verbose >= 4: print "%s: OK"%(filename)
-                elif verbose >= 2: sys.stdout.write("."); sys.stdout.flush()
+                elif verbose >= 3: sys.stdout.write("."); sys.stdout.flush()
             workqueue.task_done()
 
 for x in xrange ( numthreads ):
@@ -78,7 +78,7 @@ try:
             for filename in os.listdir(p):
                 if re.match('[0-9a-f]{40}$', filename) is None:
                     errors.append((filename, 'Invalid name'))
-                    if verbose >= 6: print "Invalid name %s"%(filename)
+                    if verbose >= 2: print "Invalid name %s"%(filename)
                     continue
                 if verbose >= 6: print "queueing %s"%(filename)
                 workqueue.put((p, filename))
-- 
1.5.6.5



Reply to: