aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-07-23 10:17:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-07-23 10:17:49 +0300
commitb754bef14316ff2b341fac4339940a29d6955d6c (patch)
tree7ca94147929950d095478deb330b8ea24bb040f5 /profile.c
parent2db204045f8060dbe1fc09f765373c101d0aad2c (diff)
parent93881c26428a4d07ee348c34b59f3b9586853535 (diff)
downloadegawk-b754bef14316ff2b341fac4339940a29d6955d6c.tar.gz
egawk-b754bef14316ff2b341fac4339940a29d6955d6c.tar.bz2
egawk-b754bef14316ff2b341fac4339940a29d6955d6c.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index 748abda2..3dd7bde9 100644
--- a/profile.c
+++ b/profile.c
@@ -135,7 +135,7 @@ init_profiling_signals()
/* indent --- print out enough tabs */
static void
-indent(unsigned long long count)
+indent(exec_count_t count)
{
int i;
@@ -143,7 +143,7 @@ indent(unsigned long long count)
if (count == 0)
fprintf(prof_fp, "\t");
else
- fprintf(prof_fp, "%6llu ", count);
+ fprintf(prof_fp, EXEC_COUNT_PROFILE_FMT " ", count);
}
assert(indent_level >= 0);
@@ -297,7 +297,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, int flags)
ip2 = (pc + 1)->lasti;
if (do_profile && ip1->exec_count > 0)
- fprintf(prof_fp, " # %llu", ip1->exec_count);
+ fprintf(prof_fp, " # " EXEC_COUNT_FMT, ip1->exec_count);
end_line(ip1);
skip_comment = true;
@@ -1044,7 +1044,7 @@ cleanup:
ip1 = pc->branch_if;
if (ip1->exec_count > 0)
- fprintf(prof_fp, " # %llu", ip1->exec_count);
+ fprintf(prof_fp, " # " EXEC_COUNT_FMT, ip1->exec_count);
ip1 = end_line(ip1);
indent_in();
if (pc->comment != NULL)