Whamcloud - gitweb
LU-717 ldiskfs: MRP-222 Replace sysname with nodename in MMP
[fs/lustre-release.git] / build / nn-check.py
index 12d28aa..d6bbf53 100755 (executable)
@@ -58,16 +58,11 @@ def search_symbol(line, linenum):
 
                if regex_match:
                        print_symbol = regex_match.group(0)
-                       print 'WARNING: Found %s at line %d:' \
+                       print 'warning: Found %s at line %d:' \
                                % (print_symbol, linenum)
                        print '%s' % line.rstrip()
                        bad_symbol_cnt += 1
 
-# The main portion of the script
-print '================='
-print 'Starting nn-check'
-print '================='
-
 # Open the nn-final-symbol-list.txt file and pull in the symbols to check into
 # a dictionary object.
 try:
@@ -95,6 +90,11 @@ except IOError:
        print 'Check the path provided for the diff file.'
        sys.exit(1)
 
+# The main portion of the script
+print '==================================================='
+print '%s: starting nn-check' % sys.argv[1]
+print '==================================================='
+
 index = re.compile(r'^\+\+\+ b/(.*)')
 plus = re.compile(r'^\+')
 for line in f:
@@ -104,7 +104,7 @@ for line in f:
        if index_match:
                # Store the file name
                filename=index_match.group(1)
-               print '--> Checking File: %s' % filename
+               print '%s: ' % filename
        else:
                # Check if the line starts with a "+" character.
                plus_match = plus.match(line)