source/blender/blenloader/intern/readfile.c
void blo_reportf_wrap(ReportList *reports, ReportType type, const char *format, ...)
{
  char fixed_buf[1024]; /* should be long enough */

  va_list args;

  va_start(args, format);
  vsnprintf(fixed_buf, sizeof(fixed_buf), format, args);
  va_end(args);

  fixed_buf[sizeof(fixed_buf) - 1] = '\0';

  BKE_report(reports, type, fixed_buf);

  if (G.background == 0) {
    printf("%s: %s\n", BKE_report_type_str(type), fixed_buf);
  }
}
/**
 * This function ensures that reports are printed,
 * in the case of library linking errors this is important!
 *
 * bit kludge but better then doubling up on prints,
 * we could alternatively have a versions of a report function which forces printing - campbell
 */
This function ensures that reports are printed,
in the case of library linking errors this is important!

bit kludge but better then doubling up on prints,
we could alternatively have a versions of a report function which forces printing - campbell
This function ensures that reports are printed in the case of library linking errors this is important! bit kludge but better then doubling up on prints we could alternatively have a versions of a report function which forces printing - campbell
void blo_reportf_wrap(ReportList *reports, ReportType type, const char *format, ...)
{
  char fixed_buf[1024]; 
  va_list args;
  va_start(args, format);
  vsnprintf(fixed_buf, sizeof(fixed_buf), format, args);
  va_end(args);
  fixed_buf[sizeof(fixed_buf) - 1] = '\0';
  BKE_report(reports, type, fixed_buf);
  if (G.background == 0) {
    printf("%s: %s\n", BKE_report_type_str(type), fixed_buf);
  }
}
void blo_reportf_wrap ( ReportList * reports , ReportType type , const char * format , ... ) { char fixed_buf [ 1024 ] ; va_list args ; va_start ( args , format ) ; vsnprintf ( fixed_buf , sizeof ( fixed_buf ) , format , args ) ; va_end ( args ) ; fixed_buf [ sizeof ( fixed_buf ) - 1 ] = ' \0 ' ; BKE_report ( reports , type , fixed_buf ) ; if ( G . background == 0 ) { printf ( " \n " , BKE_report_type_str ( type ) , fixed_buf ) ; } }
This function ensures that reports are printed,
 in the case of library linking errors this is important!
This function ensures that reports are printed in the case of library linking errors this is important!
/* should be long enough */