Changeset 1547
- Timestamp:
- 02/10/08 09:38:10 (7 months ago)
- Files:
-
- nebula/trunk/gst/gst.c (modified) (2 diffs)
- nebula/trunk/gst/stree.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nebula/trunk/gst/gst.c
r1546 r1547 254 254 exit(EXIT_FAILURE); 255 255 } 256 if (verbose) printf("Generalized suffix tree contains a common subtree with %u leaves.\n", cstr_list.len);256 if (verbose) printf("Generalized suffix tree contains a common subtree with %u leaves.\n", (unsigned int) cstr_list.len); 257 257 258 258 … … 265 265 qsort(cstr_list.elem, cstr_list.len, sizeof(substr), substr_len_cmp); 266 266 267 if (verbose) printf("Extracting common substrings with length >= %u.\n", min_sstr_len);267 if (verbose) printf("Extracting common substrings with length >= %u.\n", (unsigned int) min_sstr_len); 268 268 if (cstr_list.len && print_sslist) for (i=cstr_list.len; i && cstr_list.elem[i-1].len >= min_sstr_len; i--) 269 269 list_substrings(gst, cstr_list.elem[i-1].n, cstr_list.elem[i-1].len); nebula/trunk/gst/stree.c
r1546 r1547 574 574 printf("common substring starts in string \033[1;31m[%u]\033[1;0m\t at offset \033[1;33m%6u\033[1;0m " 575 575 "(absolute offset %7u) and has length \033[1;32m%3u\033[1;0m (entropy: %f):\t'", 576 id, start-string_offset[id-1]-1, start-1, length, entropy(t->tree_string+start, length));576 id, start-string_offset[id-1]-1, start-1, (unsigned int) length, entropy(t->tree_string+start, length)); 577 577 for (i=0; i<length; i++) putchar(isprint(t->tree_string[i+start]) ? t->tree_string[i+start] : '.'); 578 578 printf("'\n");
