mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
800 B

  1. --- ./pine/osdep/debuging.tim.orig 2002-11-28 01:19:37.000000000 +0100
  2. +++ ./pine/osdep/debuging.tim 2003-08-16 13:53:23.000000000 +0200
  3. @@ -195,20 +195,22 @@
  4. {
  5. va_list args;
  6. - va_start(args, fmt);
  7. -
  8. - if(debug_fp && debug >= ps_global->dlevel && do_debug(debug_fp))
  9. - vfprintf(debug_fp, fmt, args);
  10. + if(debug_fp && debug >= ps_global->dlevel && do_debug(debug_fp)) {
  11. + va_start(args, fmt);
  12. + vfprintf(debug_fp, fmt, args);
  13. + va_end(args);
  14. + }
  15. if(ps_global->dlevel <= 9 || ps_global->dlevel <= debug){
  16. char b[64000];
  17. + va_start(args, fmt);
  18. vsnprintf(b, sizeof(b), fmt, args);
  19. + va_end(args);
  20. +
  21. b[sizeof(b)-1] = '\0';
  22. add_review_message(b, ps_global->dlevel);
  23. }
  24. -
  25. - va_end(args);
  26. }
  27. #endif /* DEBUGJOURNAL */