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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [lib/] [printf.c] - Diff between revs 485 and 489

Show entire file | Details | Blame | View Log

Rev 485 Rev 489
Line 270... Line 270...
   flags&SHORTINT ? (unsigned long)(unsigned short)va_arg(arg, int) :   \
   flags&SHORTINT ? (unsigned long)(unsigned short)va_arg(arg, int) :   \
   flags&SIZET ? va_arg(arg, size_t) :                                  \
   flags&SIZET ? va_arg(arg, size_t) :                                  \
   (unsigned long)va_arg(arg, unsigned int))
   (unsigned long)va_arg(arg, unsigned int))
 
 
 
 
  xdigs = NULL;  // stop compiler whinging
  xdigs = (char *) NULL;  // stop compiler whinging
  fmt = (char *)format;
  fmt = (char *)format;
  ret = 0;
  ret = 0;
 
 
  /*
  /*
   * Scan the format for conversions (`%' character).
   * Scan the format for conversions (`%' character).
Line 673... Line 673...
        return vfnprintf(str, 1024, fmt, args);
        return vfnprintf(str, 1024, fmt, args);
 
 
}
}
 
 
#include "printf.h"
#include "printf.h"
 
#include "cpu-utils.h"
// Actual printf function we call, with static buffer of 512 bytes
// Actual printf function we call, with static buffer of 512 bytes
char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
 
 
int
int
printf_to_sim(const char *fmt, ...)
printf_to_sim(const char *fmt, ...)

powered by: WebSVN 2.1.0

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