summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime/populate_attributes.C
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2014-01-07 09:30:51 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-01-10 16:19:14 -0600
commitaa83ebd12d6cf6d6ead06e45ab61d46a53a15be3 (patch)
treed6a587a8582ac9d085b08e028c757a0ea94bb825 /src/usr/runtime/populate_attributes.C
parentea2a49ff0cd3827458025f75d5b6bd7054d18779 (diff)
downloadtalos-hostboot-aa83ebd12d6cf6d6ead06e45ab61d46a53a15be3.tar.gz
talos-hostboot-aa83ebd12d6cf6d6ead06e45ab61d46a53a15be3.zip
Remove leftover fixme/todo and update error callouts
Remove all untagged fixme/todo comments Adde new parm to error log constructor to avoid extra code in common software error case Update error callouts Add strncpy Change-Id: I8bd8f48193a96b79db91ed35c4fd485e6da38dba RTC: 67921 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7921 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/runtime/populate_attributes.C')
-rw-r--r--src/usr/runtime/populate_attributes.C19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/usr/runtime/populate_attributes.C b/src/usr/runtime/populate_attributes.C
index 091a0073f..5c47730b3 100644
--- a/src/usr/runtime/populate_attributes.C
+++ b/src/usr/runtime/populate_attributes.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* COPYRIGHT International Business Machines Corp. 2012,2014 */
/* */
/* p1 */
/* */
@@ -43,7 +43,7 @@
#include <kernel/cpu.H> // for KERNEL_MAX_SUPPORTED_CPUS_PER_NODE
trace_desc_t *g_trac_runtime = NULL;
-TRAC_INIT(&g_trac_runtime, "RUNTIME", KILOBYTE);
+TRAC_INIT(&g_trac_runtime, RUNTIME_COMP_NAME, KILOBYTE);
/**
* @brief Read a FAPI attribute and stick it into mainstore
@@ -343,8 +343,6 @@ errlHndl_t populate_system_attributes( void )
assert( *_num_attr < system_data_t::MAX_ATTRIBUTES );
TRACFCOMP( g_trac_runtime, "Run: system_cmp0.memory_ln4->image.save attributes.sys.bin 0x%X %d", sys_data, sizeof(system_data_t) );
-
- //@todo - Walk through attribute headers to look for duplicates?
} while(0);
// Handle any errors from FAPI_ATTR_GET
@@ -362,8 +360,9 @@ errlHndl_t populate_system_attributes( void )
RUNTIME::MOD_RUNTIME_POP_SYS_ATTR,
RUNTIME::RC_ATTR_GET_FAIL,
_rc,
- _failed_attribute );
-
+ _failed_attribute,
+ true /*Add HB Software Callout*/);
+ errhdl->collectTrace(TARG_COMP_NAME,KILOBYTE/2);
}
return errhdl;
@@ -412,7 +411,8 @@ errlHndl_t populate_node_attributes( uint64_t i_nodeNum )
RUNTIME::MOD_RUNTIME_POP_NODE_ATTR,
RUNTIME::RC_INVALID_SECTION,
node_data_addr,
- node_data_size );
+ node_data_size,
+ true /*Add HB Software Callout*/ );
break;
}
else if( sizeof(node_data_t) > node_data_size )
@@ -616,8 +616,9 @@ errlHndl_t populate_node_attributes( uint64_t i_nodeNum )
RUNTIME::MOD_RUNTIME_POP_NODE_ATTR,
RUNTIME::RC_ATTR_GET_FAIL,
_rc,
- _failed_attribute );
-
+ _failed_attribute,
+ true /*Add HB Software Callout*/ );
+ errhdl->collectTrace(TARG_COMP_NAME,KILOBYTE/2);
}
return errhdl;
OpenPOWER on IntegriCloud