Mercurial > hg > dmlib
comparison tools/fanalyze.c @ 2429:ebb4650f3cc1
Use printf() instead of dmPrint() for some things.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 18 Feb 2020 23:27:47 +0200 |
parents | bc05bcfc4598 |
children | 190f5caaf1a8 |
comparison
equal
deleted
inserted
replaced
2428:09082816665d | 2429:ebb4650f3cc1 |
---|---|
709 if (setMode == FA_GREP) | 709 if (setMode == FA_GREP) |
710 { | 710 { |
711 for (int nfile = 0; nfile < nsrcFiles; nfile++) | 711 for (int nfile = 0; nfile < nsrcFiles; nfile++) |
712 { | 712 { |
713 DMSourceFile *file = &srcFiles[nfile]; | 713 DMSourceFile *file = &srcFiles[nfile]; |
714 dmPrint(0, "\n%s\n", file->filename); | 714 printf("\n%s\n", file->filename); |
715 | 715 |
716 for (int n = 0; n < nsetGrepValues; n++) | 716 for (int n = 0; n < nsetGrepValues; n++) |
717 { | 717 { |
718 DMGrepValue *node = &setGrepValues[n]; | 718 DMGrepValue *node = &setGrepValues[n]; |
719 const DMGrepType *def = &dmGrepTypes[node->type]; | 719 const DMGrepType *def = &dmGrepTypes[node->type]; |
734 } | 734 } |
735 } | 735 } |
736 | 736 |
737 if (match) | 737 if (match) |
738 { | 738 { |
739 dmPrint(0, "%08" DM_PRIx_SIZE_T " : ", offs); | 739 printf("%08" DM_PRIx_SIZE_T " : ", offs); |
740 dmPrintGrepValueList(node, TRUE, file, offs); | 740 dmPrintGrepValueList(node, TRUE, file, offs); |
741 } | 741 } |
742 } | 742 } |
743 } | 743 } |
744 } | 744 } |
947 // | 947 // |
948 // Attempt to find matching sequences of N+ | 948 // Attempt to find matching sequences of N+ |
949 // | 949 // |
950 BOOL slow = FALSE; | 950 BOOL slow = FALSE; |
951 int ss = 0; | 951 int ss = 0; |
952 dmPrint(0, "Attempting to find matching sequences of %" DM_PRIu_SIZE_T " bytes or more.\n", | 952 printf("Attempting to find matching sequences of %" DM_PRIu_SIZE_T " bytes or more.\n", |
953 optMinMatchLen); | 953 optMinMatchLen); |
954 | 954 |
955 if (totalSize > 32*1024) | 955 if (totalSize > 32*1024) |
956 { | 956 { |
957 dmPrint(0, | 957 dmPrint(0, |