~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to lib/ts/Diags.cc

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
//
100
100
//////////////////////////////////////////////////////////////////////////////
101
101
 
102
 
Diags::Diags(char *bdt, char *bat, FILE * _diags_log_fp):
103
 
diags_log_fp(_diags_log_fp), show_location(0)
 
102
Diags::Diags(const char *bdt, const char *bat, FILE * _diags_log_fp)
 
103
  : diags_log_fp(_diags_log_fp), show_location(0),
 
104
    base_debug_tags(NULL), base_action_tags(NULL)
104
105
{
105
106
  int i;
106
107
 
112
113
  // initialize the default, base debugging/action tags //
113
114
  ////////////////////////////////////////////////////////
114
115
 
115
 
  base_debug_tags = NULL;
116
 
  base_action_tags = NULL;
117
116
  if (bdt && *bdt) {
118
117
    base_debug_tags = ats_strdup(bdt);
119
118
  }
146
145
{
147
146
  diags_log_fp = NULL;
148
147
 
149
 
  ats_free(base_debug_tags);
150
 
  ats_free(base_action_tags);
 
148
  ats_free((void *)base_debug_tags);
 
149
  ats_free((void *)base_action_tags);
151
150
 
152
151
  deactivate_all(DiagsTagType_Debug);
153
152
  deactivate_all(DiagsTagType_Action);
406
405
//////////////////////////////////////////////////////////////////////////////
407
406
 
408
407
void
409
 
Diags::activate_taglist(char *taglist, DiagsTagType mode)
 
408
Diags::activate_taglist(const char *taglist, DiagsTagType mode)
410
409
{
411
410
  if (taglist) {
412
411
    lock();