summaryrefslogtreecommitdiffstats
path: root/import/hwpf/fapi2
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2015-12-07 16:02:33 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 15:54:05 -0500
commit286b12fc048eae37ea3ac04ac4aba8778d02d2a4 (patch)
tree8ea5243b49c636edc18f12aa988f6d13f9b61b43 /import/hwpf/fapi2
parentd4c0a18c43848c3db7af6f831497d42fab20a581 (diff)
downloadtalos-hcode-286b12fc048eae37ea3ac04ac4aba8778d02d2a4.tar.gz
talos-hcode-286b12fc048eae37ea3ac04ac4aba8778d02d2a4.zip
Need an option to allow HWP to return an error log to platform code.
-Update ReturnCode object to include plat err pointer. -Modify FFDC code to capture error log pointer -Add FAPI_ASSERT_NO_EXIT macro Change-Id: I9d69535416be9d09434766cc15f7db447a72aa60 RTC:13220 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22572 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/hwpf/fapi2')
-rw-r--r--import/hwpf/fapi2/include/fapi2_error_scope.H13
1 files changed, 12 insertions, 1 deletions
diff --git a/import/hwpf/fapi2/include/fapi2_error_scope.H b/import/hwpf/fapi2/include/fapi2_error_scope.H
index 56655a5c..c98fbda1 100644
--- a/import/hwpf/fapi2/include/fapi2_error_scope.H
+++ b/import/hwpf/fapi2/include/fapi2_error_scope.H
@@ -73,6 +73,17 @@
/// @param[in] \__ffdc__ the FFDC gathering function
/// @param[in] ... varargs, as input to FAPI_ERR
///
-#define FAPI_ASSERT( __conditional__, __ffdc__, ... ) PLAT_FAPI_ASSERT( __conditional__, __ffdc__, __VA_ARGS__ )
+#define FAPI_ASSERT( __conditional__, __ffdc__, ... ) \
+ PLAT_FAPI_ASSERT( __conditional__, __ffdc__, __VA_ARGS__ )
+
+///
+/// @brief Create an eror log, commit it, but do not exit the hwp because of
+/// the error condition.
+/// @param[in] \__conditional__ the condition to assert
+/// @param[in] \__ffdc__ the FFDC gathering function
+/// @param[in] ... varargs, as input to FAPI_ERR
+///
+#define FAPI_ASSERT_NOEXIT( __conditional__, __ffdc__, ... ) \
+ PLAT_FAPI_ASSERT_NOEXIT( __conditional__, __ffdc__, __VA_ARGS__ )
#endif
OpenPOWER on IntegriCloud