Reduce some of the noise in the logfile
This commit is contained in:
@ -1686,7 +1686,9 @@ def generate_driver(MyDriver):
|
|||||||
print "Function:", f, "Type:", MyDriver['Funcs'][f]['type'], '#Uses:', MyDriver['Funcs'][f]['reference_count']
|
print "Function:", f, "Type:", MyDriver['Funcs'][f]['type'], '#Uses:', MyDriver['Funcs'][f]['reference_count']
|
||||||
for l in MyDriver['Funcs'][f]['text']:
|
for l in MyDriver['Funcs'][f]['text']:
|
||||||
print " ", l
|
print " ", l
|
||||||
print "Produced file %s with %d lines." % ( MyDriver['filename'], NumberOfLinesOut)
|
if Verbose:
|
||||||
|
print "Produced file %s with %d lines." % \
|
||||||
|
( MyDriver['filename'], NumberOfLinesOut)
|
||||||
# This block of code generates shell commands to help the old->new rename
|
# This block of code generates shell commands to help the old->new rename
|
||||||
if Move:
|
if Move:
|
||||||
fd = open("git_mv.sh", "a")
|
fd = open("git_mv.sh", "a")
|
||||||
@ -1718,6 +1720,7 @@ def process_drivers(TheDrivers):
|
|||||||
generate_driver(MyDriver)
|
generate_driver(MyDriver)
|
||||||
|
|
||||||
def process_source(source_files):
|
def process_source(source_files):
|
||||||
|
global lexer, yaccer
|
||||||
global PathName
|
global PathName
|
||||||
global TheDrivers
|
global TheDrivers
|
||||||
global NumberOfLinesIn
|
global NumberOfLinesIn
|
||||||
@ -1734,7 +1737,7 @@ def process_source(source_files):
|
|||||||
# Build the parser
|
# Build the parser
|
||||||
#
|
#
|
||||||
#yaccer = yacc.yacc(tabmodule="gen_sct",outputdir="/tmp",write_tables=0,debug=0)
|
#yaccer = yacc.yacc(tabmodule="gen_sct",outputdir="/tmp",write_tables=0,debug=0)
|
||||||
yaccer = yacc.yacc()
|
yaccer = yacc.yacc(debug=0)
|
||||||
|
|
||||||
for source_file in source_files:
|
for source_file in source_files:
|
||||||
PathName = os.path.realpath(os.path.abspath(os.path.dirname(source_file)))
|
PathName = os.path.realpath(os.path.abspath(os.path.dirname(source_file)))
|
||||||
@ -1745,8 +1748,9 @@ def process_source(source_files):
|
|||||||
start_line = lexer.lineno
|
start_line = lexer.lineno
|
||||||
yaccer.parse(data)
|
yaccer.parse(data)
|
||||||
stop_line = lexer.lineno
|
stop_line = lexer.lineno
|
||||||
print 'Consumed file %s with %d lines (%d, %d)' % (source_file,
|
if Verbose:
|
||||||
NumberOfLinesIn, start_line, stop_line - 1)
|
print 'Consumed file %s with %d lines (%d, %d)' % \
|
||||||
|
(source_file, NumberOfLinesIn, start_line, stop_line - 1)
|
||||||
lexer.lineno = 1
|
lexer.lineno = 1
|
||||||
|
|
||||||
process_drivers(TheDrivers)
|
process_drivers(TheDrivers)
|
||||||
@ -1756,6 +1760,7 @@ def main():
|
|||||||
global Move
|
global Move
|
||||||
global DriverDump
|
global DriverDump
|
||||||
global CodeDump
|
global CodeDump
|
||||||
|
global args
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
@ -1769,6 +1774,7 @@ def main():
|
|||||||
action="store_true")
|
action="store_true")
|
||||||
parser.add_argument("driver_source", help="driver source file", nargs="*")
|
parser.add_argument("driver_source", help="driver source file", nargs="*")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
if args.verbose:
|
||||||
print args
|
print args
|
||||||
if args.code:
|
if args.code:
|
||||||
CodeDump = True
|
CodeDump = True
|
||||||
|
Reference in New Issue
Block a user