/[ascend]/branches/relerrorlist/ascend/utilities/error.c
ViewVC logotype

Diff of /branches/relerrorlist/ascend/utilities/error.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3216 by jpye, Sun Sep 17 12:36:16 2017 UTC revision 3217 by jpye, Sat Oct 28 07:01:00 2017 UTC
# Line 96  static error_reporter_meta_t *error_repo Line 96  static error_reporter_meta_t *error_repo
96    
97  # define CURRENT g_error_reporter_tree_current  # define CURRENT g_error_reporter_tree_current
98    
99    #ifdef ERROR_DEBUG
100  static void error_reporter_tree_print(error_reporter_tree_t *t1);  static void error_reporter_tree_print(error_reporter_tree_t *t1);
101    #endif
102    
103  static int error_reporter_tree_write(error_reporter_tree_t *t);  static int error_reporter_tree_write(error_reporter_tree_t *t);
104  static void error_reporter_tree_free(error_reporter_tree_t *t);  static void error_reporter_tree_free(error_reporter_tree_t *t);
105    
# Line 149  static void error_reporter_tree_print1(e Line 152  static void error_reporter_tree_print1(e
152      }      }
153  }  }
154    
   
155  static void error_reporter_tree_print(error_reporter_tree_t *t1){  static void error_reporter_tree_print(error_reporter_tree_t *t1){
156      if(!t1){      if(!t1){
157          MSG("null tree");          MSG("null tree");
# Line 447  int vfprintf_error_reporter(FILE *file, Line 449  int vfprintf_error_reporter(FILE *file,
449              res = vsnprintf(msg+len,ERROR_REPORTER_MAX_MSG-len,fmt,*args);              res = vsnprintf(msg+len,ERROR_REPORTER_MAX_MSG-len,fmt,*args);
450              //MSG("Appended \"%s\" to message",msg+len);              //MSG("Appended \"%s\" to message",msg+len);
451              if(len+res+1>=ERROR_REPORTER_MAX_MSG){              if(len+res+1>=ERROR_REPORTER_MAX_MSG){
452                  SNPRINTF(msg+ERROR_REPORTER_MAX_MSG-16,15,"... (truncated)");                  SNPRINTF(msg+ERROR_REPORTER_MAX_MSG-16,16,"... (truncated)");
453                  ASC_FPRINTF(stderr,"TRUNCATED MESSAGE, FULL MESSAGE FOLLOWS:\n----------START----------\n");                  ASC_FPRINTF(stderr,"TRUNCATED MESSAGE, FULL MESSAGE FOLLOWS:\n----------START----------\n");
454                  ASC_VFPRINTF(stderr,fmt,*args);                  ASC_VFPRINTF(stderr,fmt,*args);
455                  ASC_FPRINTF(stderr,"\n-----------END----------\n");                  ASC_FPRINTF(stderr,"\n-----------END----------\n");

Legend:
Removed from v.3216  
changed lines
  Added in v.3217

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22