summaryrefslogtreecommitdiffstats
path: root/src/include/usr/initservice/taskargs.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-01-10 18:15:21 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-01-19 16:17:54 -0600
commit0408868bb339cab3222c5728012fca2306aa982b (patch)
treee00f73f8724098fb34e6155baa0583f5bf2c7aa0 /src/include/usr/initservice/taskargs.H
parentd36f713c972a1b3473916c4250b4042cd2b73a41 (diff)
downloadtalos-hostboot-0408868bb339cab3222c5728012fca2306aa982b.tar.gz
talos-hostboot-0408868bb339cab3222c5728012fca2306aa982b.zip
Fix error log leak in AttrRP.
Change-Id: Ia4b14565897ca4581836124f2cd933ce448c90b8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/607 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/initservice/taskargs.H')
-rw-r--r--src/include/usr/initservice/taskargs.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/usr/initservice/taskargs.H b/src/include/usr/initservice/taskargs.H
index bf83e3ece..39156626c 100644
--- a/src/include/usr/initservice/taskargs.H
+++ b/src/include/usr/initservice/taskargs.H
@@ -229,6 +229,16 @@ public:
/**
+ * @brief queryErrorLog
+ *
+ * Tasks can use this to determine if an error log has been posted.
+ *
+ * @return bool - True if postErrorLog called with non-NULL value.
+ */
+ bool queryErrorLog( ) { return (iv_errl != NULL); };
+
+
+ /**
* @brief clear taskargs struct between uses
* - barrier is left alone,
* - if iv_errl is non zero, we commit it here just to avoid
OpenPOWER on IntegriCloud