File 0435-Fix-printing-of-arities-in-crashdumps-on-Windows.patch of Package erlang
From c3def3399286e0e5d7e0ad4e8b4bfb7fd81a9af0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 10 Aug 2023 14:03:05 +0200
Subject: [PATCH] Fix printing of arities in crashdumps on Windows
---
erts/emulator/beam/break.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c
index 9efc797481..f161378faf 100644
--- a/erts/emulator/beam/break.c
+++ b/erts/emulator/beam/break.c
@@ -294,7 +294,7 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p, ErtsProcLocks orig_lock
erts_print(to, to_arg, "Spawned as: %T:%T/%bpu\n",
p->u.initial.module,
p->u.initial.function,
- p->u.initial.arity);
+ (Uint)p->u.initial.arity);
if (p->current != NULL) {
if (running) {
@@ -305,7 +305,7 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p, ErtsProcLocks orig_lock
erts_print(to, to_arg, "%T:%T/%bpu\n",
p->current->module,
p->current->function,
- p->current->arity);
+ (Uint)p->current->arity);
}
erts_print(to, to_arg, "Spawned by: %T\n",
@@ -366,7 +366,7 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p, ErtsProcLocks orig_lock
erts_print(to, to_arg, "%T:%T/%bpu\n",
scb->ct[j]->info.mfa.module,
scb->ct[j]->info.mfa.function,
- scb->ct[j]->info.mfa.arity);
+ (Uint)scb->ct[j]->info.mfa.arity);
}
erts_print(to, to_arg, "\n");
}
--
2.35.3