/[pdpsoft]/trunk/grid-mw-security/cgul/log_to_file/log_to_file.c
ViewVC logotype

Diff of /trunk/grid-mw-security/cgul/log_to_file/log_to_file.c

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

revision 1781 by aramv, Wed Jun 9 13:54:08 2010 UTC revision 1782 by aramv, Wed Jun 16 09:22:25 2010 UTC
# Line 81  void cgul_log(int priority, const char* Line 81  void cgul_log(int priority, const char*
81        vfprintf(stderr, _format, args);        vfprintf(stderr, _format, args);
82      }      }
83      va_end(args);      va_end(args);
84    }    } else {
85        /* if running in non-debug mode */
86    /* if the format string was changed by appending, it needs to be free'd */      if(priority > LOG_INFO){
87    if(format != _format){        /* and priority is debug or info */
88      free(_format);        goto end;
89        }
90      
91    }    }
92    
93    /* Default output */    /* Default output */
# Line 101  void cgul_log(int priority, const char* Line 103  void cgul_log(int priority, const char*
103      va_end(args);      va_end(args);
104    }    }
105    
106    end:
107      /* if the format string was changed by appending, it needs to be free'd */
108      if(format != _format){
109        free(_format);
110      }
111    
112    /* if the format string was changed by stripping, it needs to be free'd */    /* if the format string was changed by stripping, it needs to be free'd */
113    return;    return;
114  }  }

Legend:
Removed from v.1781  
changed lines
  Added in v.1782

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28