Print this page
12257 resync smatch to 0.6.1-rc1-il-4

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_slist.c
          +++ new/usr/src/tools/smatch/src/smatch_slist.c
↓ open down ↓ 70 lines elided ↑ open up ↑
  71   71  truncate:
  72   72          for (i = 0; i < 3; i++)
  73   73                  buf[sizeof(buf) - 2 - i] = '.';
  74   74          return buf;
  75   75  }
  76   76  
  77   77  void __print_stree(struct stree *stree)
  78   78  {
  79   79          struct sm_state *sm;
  80   80  
  81      -        printf("dumping stree at %d [%ld states]\n", get_lineno(), stree_count(stree));
       81 +        option_debug++;
       82 +        sm_msg("dumping stree [%ld states]", stree_count(stree));
  82   83          FOR_EACH_SM(stree, sm) {
  83      -                printf("%s\n", show_sm(sm));
       84 +                sm_printf("%s\n", show_sm(sm));
  84   85          } END_FOR_EACH_SM(sm);
  85      -        printf("---\n");
       86 +        sm_printf("---\n");
       87 +        option_debug--;
  86   88  }
  87   89  
  88   90  /* NULL states go at the end to simplify merge_slist */
  89   91  int cmp_tracker(const struct sm_state *a, const struct sm_state *b)
  90   92  {
  91   93          int ret;
  92   94  
  93   95          if (a == b)
  94   96                  return 0;
  95   97          if (!b)
↓ open down ↓ 991 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX