Lines Matching +full:in +full:- +full:line
7 This script is intended to aid in the replacement of bmcweb log lines from
12 It is intended to be a 99% correct tool, and in some cases, some amount of
16 ptrs need to be wrapped in logPtr(). This script tries to do the common
20 in the args section
22 arguments that were previously build by in-line operator+ construction of
23 strings (for example "foo" + bar), need to be formatted in the arguments
26 After the script has been run, remember to reformat with clang-format
35 ["git", "-C", os.path.join(SCRIPT_DIR, ".."), "grep", "-l", "BMCWEB_LOG_"]
40 for filename in filenames:
46 # Normalize all the log statements to a single line
49 for line in contents.splitlines():
50 match = re.match(r"\s+BMCWEB_LOG_", line)
55 line = " " + line.lstrip() variable
56 if line.endswith(";"):
58 new_contents += line
64 for line in contents.splitlines():
65 match = re.match(r"(\s+BMCWEB_LOG_[A-Z]+) <<", line)
68 line = line.lstrip() variable
69 chevron_split = line.split("<<")
71 for log_piece in chevron_split[1:]:
73 log_piece = log_piece[:-1]
78 logstring += log_piece[1:-1]
87 logstring = logstring[:-2]
92 line = match.group(1) + "(" + argjoin + ");" variable
93 new_contents += line + "\n"