--- hatari/src/debug/profile.c 2019/04/09 08:55:36 1.1.1.5 +++ hatari/src/debug/profile.c 2019/04/09 08:56:50 1.1.1.6 @@ -91,7 +91,7 @@ static void output_caller_info(FILE *fp, if (info->flags) { /* calltypes supported? */ fputc(' ', fp); typecount = 0; - for (k = 0; k < ARRAYSIZE(flaginfo); k++) { + for (k = 0; k < ARRAY_SIZE(flaginfo); k++) { if (info->flags & flaginfo[k].bit) { fputc(flaginfo[k].chr, fp); typecount++; @@ -128,7 +128,7 @@ void Profile_ShowCallers(FILE *fp, int s /* legend */ fputs("# : = [ [ ]], ..., ", fp); fputs("\n# types: ", fp); - for (i = 0; i < ARRAYSIZE(flaginfo); i++) { + for (i = 0; i < ARRAY_SIZE(flaginfo); i++) { fprintf(fp, "%c = %s, ", flaginfo[i].chr, flaginfo[i].info); } fputs("\n# totals: calls/instructions/cycles/i-misses/d-hits\n", fp); @@ -502,7 +502,7 @@ char *Profile_Match(const char *text, in "addresses", "callers", "caches", "counts", "cycles", "d-hits", "i-misses", "loops", "off", "on", "save", "stack", "stats", "symbols" }; - return DebugUI_MatchHelper(names, ARRAYSIZE(names), text, state); + return DebugUI_MatchHelper(names, ARRAY_SIZE(names), text, state); } const char Profile_Description[] = @@ -533,7 +533,7 @@ const char Profile_Description[] = "\tFirst can be limited just to named addresses with 'symbols'.\n" "\tOptional count will limit how many items will be shown.\n" "\n" - "'caches' shows histogram of CPU cache usage.\n" + "\t'caches' shows histogram of CPU cache usage.\n" "\n" "\t'addresses' lists the profiled addresses in order, with the\n" "\tinstructions (currently) residing at them. By default this\n"