X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fnn-check.py;h=d6bbf5390cf18015c446d560c15e6b2d99e1b0f7;hp=12d28aaf6be089022f71c59e7384e18f163fc403;hb=ee7926c6e54892923ebd46a9a4088669cfdc7f7a;hpb=6e3ec5812ebd1b5ecf7cae584f429b013ffe7431 diff --git a/build/nn-check.py b/build/nn-check.py index 12d28aa..d6bbf53 100755 --- a/build/nn-check.py +++ b/build/nn-check.py @@ -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)