OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [nanox/] [error.c] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
/*
2
 * Reconfigurable error handler
3
 */
4
 
5
#include <stdio.h>
6
#include <stdarg.h>
7
#if (UNIX | DOS_DJGPP)
8
#include <unistd.h>
9
#endif
10
#include "device.h"
11
 
12
/* output error message and return -1*/
13
int
14
GdError(const char *format, ...)
15
{
16
        va_list args;
17
        char    buf[512];
18
 
19
        va_start(args, format);
20
        vsprintf(buf, format, args);
21
        va_end(args);
22
        write(2, buf, strlen(buf));
23
        return -1;
24
}
25
 
26
/* null routine to consume messages */
27
int
28
GdErrorNull(const char *format, ...)
29
{
30
        return -1;
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.