\r
self.error(*lines)\r
\r
+ old_debug_re = \\r
+ re.compile(r'''\r
+ DEBUG \s* \( \s* \( \s*\r
+ (?: DEBUG_[A-Z_]+ \s* \| \s*)*\r
+ EFI_D_ ([A-Z_]+)\r
+ ''',\r
+ re.VERBOSE)\r
+\r
def check_added_line(self, line):\r
eol = ''\r
for an_eol in self.line_endings:\r
if len(stripped) < len(line):\r
self.added_line_error('Trailing whitespace found', line)\r
\r
+ mo = self.old_debug_re.search(line)\r
+ if mo is not None:\r
+ self.added_line_error('EFI_D_' + mo.group(1) + ' was used, '\r
+ 'but DEBUG_' + mo.group(1) +\r
+ ' is now recommended', line)\r
+\r
split_diff_re = re.compile(r'''\r
(?P<cmd>\r
^ diff \s+ --git \s+ a/.+ \s+ b/.+ $\r