summaryrefslogtreecommitdiff
path: root/util/lint
diff options
context:
space:
mode:
Diffstat (limited to 'util/lint')
-rwxr-xr-xutil/lint/checkpatch_json.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py
index 3254aae03b..44b2a8b887 100755
--- a/util/lint/checkpatch_json.py
+++ b/util/lint/checkpatch_json.py
@@ -38,11 +38,11 @@ def update_struct( file_path, msg_output, line_number):
def parse_file(input_file):
fp = open (input_file, "r")
for line in fp:
- if "ERROR" in line:
+ if line.startswith("ERROR:"):
msg_output = line.split("ERROR:")[1].strip()
- elif "WARNING" in line:
+ elif line.startswith("WARNING:"):
msg_output = line.split("WARNING:")[1].strip()
- elif "FILE" in line:
+ elif ": FILE:" in line:
temp = line.split("FILE:")
file_path = temp[1].split(":")[0]
line_number = temp[1].split(":")[1]