diff options
author | Sverker Eriksson <[email protected]> | 2016-11-17 16:50:36 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-11-17 16:58:11 +0100 |
commit | 9a1110de820988afb4e9d195a59872b214de2d26 (patch) | |
tree | 2a0badf2960e374a71eee53d17e454de260f48a0 /erts/emulator/beam/erl_nif.c | |
parent | 4d7f8c2ab1a7b8c204d932166837b58d08de6506 (diff) | |
download | otp-9a1110de820988afb4e9d195a59872b214de2d26.tar.gz otp-9a1110de820988afb4e9d195a59872b214de2d26.tar.bz2 otp-9a1110de820988afb4e9d195a59872b214de2d26.zip |
erts: Refactor crash dumping with cbprintf
Instead of passing around a file descriptor
use a function pointer to facilitate more advanced
backend write logic such as size limitation or compression.
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 3a547982da..20b6c76cb7 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -3068,16 +3068,16 @@ Eterm erts_nif_taints(Process* p) return list; } -void erts_print_nif_taints(int to, void* to_arg) +void erts_print_nif_taints(fmtfn_t to, void* to_arg) { struct tainted_module_t* t; const char* delim = ""; for (t=first_tainted_module ; t!=NULL; t=t->next) { const Atom* atom = atom_tab(atom_val(t->module_atom)); - erts_print(to,to_arg,"%s%.*s", delim, atom->len, atom->name); + erts_cbprintf(to,to_arg,"%s%.*s", delim, atom->len, atom->name); delim = ","; } - erts_print(to,to_arg,"\n"); + erts_cbprintf(to,to_arg,"\n"); } |