Remove #undefs and fix formatting.

This commit is contained in:
Chris Johns
2015-06-19 16:07:32 +10:00
parent c31922b8c4
commit 59bc7c1f5f
2 changed files with 7 additions and 10 deletions

View File

@@ -52,6 +52,7 @@
#include <setjmp.h>
#include <stdlib.h>
#undef printf
#include <machine/rtems-bsd-program.h>
struct rtems_bsd_program_control {
@@ -121,12 +122,12 @@ rtems_bsd_program_exit(int exit_code)
void
rtems_bsd_program_error(const char *fmt, ...)
{
va_list list;
va_start(list, fmt);
vfprintf(stderr, fmt, list);
fprintf(stderr, "\n");
va_end(list);
rtems_bsd_program_exit(1);
va_list list;
va_start(list, fmt);
vfprintf(stderr, fmt, list);
fprintf(stderr, "\n");
va_end(list);
rtems_bsd_program_exit(1);
}
const char *