aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2019-04-09 16:49:57 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-04-24 09:15:59 +0200
commitf20d813c5cbbab9e180e8c9b374895cba5dbd40d (patch)
treee352e5addcc30adecfd339143fd902975bcdbfc7
parent79dba1989821e348d7cd5eee89e98d732b6d3bf9 (diff)
cec-compliance: use warn() in warn_once()
Use the warn() macro in warn_once() instead of duplicating its contents. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-compliance.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/utils/cec-compliance/cec-compliance.h b/utils/cec-compliance/cec-compliance.h
index 0a890311..2ebf2d5d 100644
--- a/utils/cec-compliance/cec-compliance.h
+++ b/utils/cec-compliance/cec-compliance.h
@@ -230,12 +230,7 @@ struct remote_subtest {
\
if (!show) { \
show = true; \
- warnings++; \
- if (show_warnings) \
- printf("\t\twarn: %s(%d): " fmt, \
- __FILE__, __LINE__, ##args); \
- if (exit_on_warn) \
- exit(1); \
+ warn(fmt, ##args); \
} \
} while (0)

Privacy Policy