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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [src/] [nanox/] [error.c] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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