From c9343d971c4410c80ff92bd554d61740cd39b8dd Mon Sep 17 00:00:00 2001 From: Stephen Cprek Date: Thu, 3 Oct 2013 17:07:20 -0500 Subject: Added common header file for reason code Change-Id: Ifea8a00b9a36817e0b42054dfb9ce13dad8f15a6 RTC: 76269 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6478 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton Reviewed-by: Andrew J. Geissler Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/usr/example/example.C | 79 ----------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/usr/example/example.C (limited to 'src/usr/example/example.C') diff --git a/src/usr/example/example.C b/src/usr/example/example.C deleted file mode 100644 index bb8cef2a3..000000000 --- a/src/usr/example/example.C +++ /dev/null @@ -1,79 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/usr/example/example.C $ */ -/* */ -/* IBM CONFIDENTIAL */ -/* */ -/* COPYRIGHT International Business Machines Corp. 2010,2012 */ -/* */ -/* p1 */ -/* */ -/* Object Code Only (OCO) source materials */ -/* Licensed Internal Code Source Materials */ -/* IBM HostBoot Licensed Internal Code */ -/* */ -/* The source code for this program is not published or otherwise */ -/* divested of its trade secrets, irrespective of what has been */ -/* deposited with the U.S. Copyright Office. */ -/* */ -/* Origin: 30 */ -/* */ -/* IBM_PROLOG_END_TAG */ -#include -#include -#include -#include -#include -#include -#include -#include - -#if 0 -//static mutex_t value = MUTEX_INITIALIZER; -trace_desc_t *g_trac_test = NULL; -TRAC_INIT(&g_trac_test, "EXAMPLE", 4096); -#endif - -extern "C" -void* _start(void *ptr) -{ - /** - * @todo fix printk to accept (NULL) - */ - printk( "Executing Example module, arg=%s\n", ( (ptr==NULL) ? "(NULL)" : (char*)ptr ) ); - - return NULL; -} - -uint64_t example1_function() -{ - uint64_t l_rc = 0; - - //TRACFCOMP(g_trac_test, "Someone Called example1_function!"); - - return l_rc; -} - -// This example shows how to create an error log with passed-in -// defined parameters -void example2_create_errorlog_function() -{ - /*@ - * @errortype - * @moduleid MY_MODULE_ID_1 - * @reasoncode MY_REASON_CODE_1 - * @userdata1 Meaning of userdata1 value - * @userdata2 Meaning of userdata2 value - * @devdesc Example of creating an error log - */ - errlHndl_t l_err = new ERRORLOG::ErrlEntry( - ERRORLOG::ERRL_SEV_INFORMATIONAL, - MY_MODULE_ID_1, - MY_REASON_CODE_1, - 0x8000000000000001, - 0x9000000000000003); - delete l_err; - l_err = NULL; - return; -} -- cgit v1.2.3