~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to slirp/misc.c

  • Committer: blueswir1
  • Date: 2007-10-26 18:42:59 UTC
  • Revision ID: git-v1:31a60e22752d3daaa248ca10930f3cf4bc5f02e8
Make Slirp statistics gathering and output conditional to LOG_ENABLED
Add 'info slirp' command to monitor to display statistics
Disable Slirp debugging code by default


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3451 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
603
603
}
604
604
#endif
605
605
 
 
606
#ifdef CONFIG_QEMU
 
607
void lprint(const char *format, ...)
 
608
{
 
609
    va_list args;
 
610
 
 
611
    va_start(args, format);
 
612
    term_vprintf(format, args);
 
613
    va_end(args);
 
614
}
 
615
#else
606
616
int (*lprint_print) _P((void *, const char *, va_list));
607
617
char *lprint_ptr, *lprint_ptr2, **lprint_arg;
608
618
 
754
764
 
755
765
        lprint("Adding emulation for %s to port %d/%d\r\n", buff1, emup->lport, emup->fport);
756
766
}
 
767
#endif
757
768
 
758
769
#ifdef BAD_SPRINTF
759
770