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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/orpsocv2/sw/lib
    from Rev 468 to Rev 485
    Reverse comparison

Rev 468 → Rev 485

/include/printf.h
1,6 → 1,8
#ifndef _PRINTF_H_
#define _PRINTF_H_
 
int sprintf(char* str, const char *fmt, ...);
 
#define PRINTFBUFFER_SIZE 512
extern char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
//int vfnprintf ( char *stream, size_t n, const char *format, va_list arg);
/printf.c
663,6 → 663,17
/* NOTREACHED */
}
 
int
sprintf(char* str, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
 
return vfnprintf(str, 1024, fmt, args);
}
 
#include "printf.h"
 
// Actual printf function we call, with static buffer of 512 bytes

powered by: WebSVN 2.1.0

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