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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [support/] [debug.c] - Diff between revs 1522 and 1530

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1522 Rev 1530
Line 50... Line 50...
                   const char *function, const char *format, ...)
                   const char *function, const char *format, ...)
{
{
  va_list ap;
  va_list ap;
  static int last_lf = 1; /* There *has* to be a better way */
  static int last_lf = 1; /* There *has* to be a better way */
 
 
  if(!(dbch[0] & (1 << dbcl)))
 
    return;
 
 
 
  if(last_lf)  {
  if(last_lf)  {
    if(!TRACE_ON(cycles))
    if(!TRACE_ON(cycles))
      fprintf(stderr, "%s:%s:%s: ", debug_classes[dbcl], dbch + 1, function);
      fprintf(stderr, "%s:%s:%s: ", debug_classes[dbcl], dbch + 1, function);
    else
    else
      fprintf(stderr, "%lld:%s:%s:%s: ", runtime.sim.cycles,
      fprintf(stderr, "%lld:%s:%s:%s: ", runtime.sim.cycles,

powered by: WebSVN 2.1.0

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