2009-12-08 Eric Norum <wenorum@lbl.gov>

PR 1479/bsps
	* fatal/bspfatal.c: Complete strcat conversion.
This commit is contained in:
Joel Sherrill
2009-12-08 16:48:26 +00:00
parent 5e87bae292
commit e0e2cb8ec0
2 changed files with 13 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
2009-12-08 Eric Norum <wenorum@lbl.gov>
PR 1479/bsps
* fatal/bspfatal.c: Complete strcat conversion.
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/mvme167.cfg: Remove RTEMS_BSP_FAMILY.

View File

@@ -46,46 +46,39 @@ User_extensions_routine bsp_fatal_error_occurred(
char strbuf[254]; /* In case count is bumped up by one by 167Bug */
} my_p_str;
my_p_str.index = 0;
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"\r\nRTEMS Fatal Error Occurred:\r\n the_source = " );
switch ( the_source ) {
case INTERNAL_ERROR_CORE:
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"INTERNAL_ERROR_CORE\r\n is_internal = " );
break;
case INTERNAL_ERROR_RTEMS_API:
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"INTERNAL_ERROR_RTEMS_API\r\n is_internal = " );
break;
case INTERNAL_ERROR_POSIX_API:
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"INTERNAL_ERROR_POSIX_API\r\n is_internal = " );
break;
default:
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"UNKNOWN\r\n is_internal = " );
break;
}
if ( is_internal )
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"TRUE\r\n the_error = 0x|10,8|\r\n" );
else
my_p_str.index += strcat(
my_p_str.strbuf + my_p_str.index,
strcat(my_p_str.strbuf,
"FALSE\r\n the_error = 0x|10,8|\r\n" );
my_p_str.index = strlen(my_p_str.strbuf);
lcsr->intr_ena = 0; /* disable interrupts */
m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */