diff options
author | Rick Reed <[email protected]> | 2012-03-16 15:46:39 -0700 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2014-03-09 10:46:38 +0100 |
commit | 38bd20f4f58e8025bd3ffc718cb7e40a4bde6396 (patch) | |
tree | eb6a2a0347a590f04e433ede072f275ba97b4f42 /erts/emulator/beam | |
parent | 870737ab657433c5e8751255fe3c4d298202d142 (diff) | |
download | otp-38bd20f4f58e8025bd3ffc718cb7e40a4bde6396.tar.gz otp-38bd20f4f58e8025bd3ffc718cb7e40a4bde6396.tar.bz2 otp-38bd20f4f58e8025bd3ffc718cb7e40a4bde6396.zip |
Demote rare debug slogan of message discarding to debug build
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/bif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index 06a1230ca0..03c436210f 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -1869,6 +1869,7 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend, Eterm *refp) { } else if (is_external_pid(to)) { dep = external_pid_dist_entry(to); if(dep == erts_this_dist_entry) { +#if DEBUG erts_dsprintf_buf_t *dsbufp = erts_create_logger_dsbuf(); erts_dsprintf(dsbufp, "Discarding message %T from %T to %T in an old " @@ -1879,6 +1880,7 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend, Eterm *refp) { external_pid_creation(to), erts_this_node->creation); erts_send_error_to_logger(p->group_leader, dsbufp); +#endif return 0; } return remote_send(p, dep, to, to, msg, suspend); @@ -1907,6 +1909,7 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend, Eterm *refp) { } else if (is_external_port(to) && (external_port_dist_entry(to) == erts_this_dist_entry)) { +#if DEBUG erts_dsprintf_buf_t *dsbufp = erts_create_logger_dsbuf(); erts_dsprintf(dsbufp, "Discarding message %T from %T to %T in an old " @@ -1917,6 +1920,7 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend, Eterm *refp) { external_port_creation(to), erts_this_node->creation); erts_send_error_to_logger(p->group_leader, dsbufp); +#endif return 0; } else if (is_internal_port(to)) { int ret_val; |