diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-20 17:18:42 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-20 17:18:42 +1000 |
commit | be430d881285f72df6dd932c06811d62463dfe88 (patch) | |
tree | a6dbb9348b70f1ef305542ccfecb12641a4fc45a /core/utils.c | |
parent | 45942736aae0d7c3ca7264686e70f549046be340 (diff) | |
download | blackbird-skiboot-be430d881285f72df6dd932c06811d62463dfe88.tar.gz blackbird-skiboot-be430d881285f72df6dd932c06811d62463dfe88.zip |
Add fwts annotations for critical errors
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/utils.c')
-rw-r--r-- | core/utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/utils.c b/core/utils.c index 4bb89df0..d21881ef 100644 --- a/core/utils.c +++ b/core/utils.c @@ -27,6 +27,13 @@ unsigned long __stack_chk_guard = 0xdeadf00dbaad300dULL; void __noreturn assert_fail(const char *msg) { + /** + * @fwts-label FailedAssert + * @fwts-advice OPAL hit an assert(). During normal usage (even + * testing) we should never hit an assert. There are other code + * paths for controlled shutdown/panic in the event of catastrophic + * errors. + */ prlog(PR_EMERG, "Assert fail: %s\n", msg); _abort(msg); } |