Style: Make style.py's invalid warning print which file caused the infraction.
authorMatt Evans <matt.evans@arm.com>
Fri, 29 Jun 2012 15:19:06 +0000 (11:19 -0400)
committerMatt Evans <matt.evans@arm.com>
Fri, 29 Jun 2012 15:19:06 +0000 (11:19 -0400)
util/style.py

index 498bdf530073a2b5d4d4769e7cc440e1118b273b..2c102b14de369dbd79ac3ebe12b47ab6e604c039 100644 (file)
@@ -244,7 +244,7 @@ class SortedIncludes(Verifier):
         modified = mod & regions
 
         if modified:
-            self.write("invalid sorting of includes\n")
+            self.write("invalid sorting of includes in %s\n" % (filename))
             if self.ui.verbose:
                 for start, end in modified.regions:
                     self.write("bad region [%d, %d)\n" % (start, end))