~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to modules/dbparser/pdbtool.c

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2013-05-26 09:06:21 UTC
  • mfrom: (1.3.11)
  • Revision ID: package-import@ubuntu.com-20130526090621-8z2s0oi21eoljb9x
Tags: 3.3.9-1
* New upstream release.
* Include missed ivykis header (closes: #708793).

Show diffs side-by-side

added added

removed removed

Lines of Context:
572
572
                    name = nv_registry_get_handle_name(logmsg_registry, dbg_info->pnode->handle, &name_len);
573
573
 
574
574
                  printf("PDBTOOL_DEBUG=%d:%d:%d:%d:%d:%s:%s\n",
575
 
                        i++, dbg_info->i, dbg_info->node->keylen, dbg_info->match_off, dbg_info->match_len,
 
575
                        i, dbg_info->i, dbg_info->node->keylen, dbg_info->match_off, dbg_info->match_len,
576
576
                        dbg_info->pnode ? r_parser_type_name(dbg_info->pnode->type) : "",
577
577
                        dbg_info->pnode && name_len ? name : ""
578
578
                        );
847
847
            pdbtool_walk_tree(root, 0, FALSE);
848
848
        }
849
849
    }
 
850
  else
 
851
    {
 
852
      fprintf(stderr, "Neither --program-tree nor --program was specified, doing nothing\n");
 
853
    }
850
854
 
851
855
  pattern_db_free(patterndb);
852
856
 
855
859
 
856
860
static GOptionEntry dump_options[] =
857
861
{
 
862
  { "pdb",       'p', 0, G_OPTION_ARG_STRING, &patterndb_file,
 
863
    "Name of the patterndb file", "<patterndb_file>" },
858
864
  { "program", 'P', 0, G_OPTION_ARG_STRING, &match_program,
859
865
    "Program name ($PROGRAM) to dump", "<program>" },
860
866
  { "program-tree", 'T', 0, G_OPTION_ARG_NONE, &dump_program_tree,