aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-05-03 09:58:20 +0200
committerLukas Larsson <[email protected]>2019-05-03 09:58:20 +0200
commit29e64fd9d4eb8ab736936682dca5ed27f4e11a24 (patch)
treec63491a9f1d381a9e5de6e998de080d3fd43baf7 /erts/emulator/beam
parentaeba9f1a2950c8864f0ce6cafac190c150035486 (diff)
parenta4645470a77989cc1d4943331dc11a0d1a4db532 (diff)
downloadotp-29e64fd9d4eb8ab736936682dca5ed27f4e11a24.tar.gz
otp-29e64fd9d4eb8ab736936682dca5ed27f4e11a24.tar.bz2
otp-29e64fd9d4eb8ab736936682dca5ed27f4e11a24.zip
Merge branch 'lukas/erts/distr-frag-fixes'
* lukas/erts/distr-frag-fixes: erts: Add documentation for distribution fragments
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/dist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index ec55a6913c..ff19ef018e 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -55,7 +55,6 @@
*/
#if 0
#define ERTS_DIST_MSG_DBG
-FILE *dbg_file;
#endif
#if 0
/* Enable this to print the dist debug messages to a file instead */
@@ -67,6 +66,7 @@ FILE *dbg_file;
#endif
#if defined(ERTS_DIST_MSG_DBG) || defined(ERTS_RAW_DIST_MSG_DBG)
+FILE *dbg_file;
static void bw(byte *buf, ErlDrvSizeT sz)
{
bin_write(ERTS_PRINT_FILE, dbg_file, buf, sz);
@@ -743,7 +743,7 @@ void init_dist(void)
sprintf(buff, ERTS_DIST_MSG_DBG_FILE, getpid());
dbg_file = fopen(buff,"w+");
}
-#elif defined (ERTS_DIST_MSG_DBG)
+#elif defined(ERTS_DIST_MSG_DBG) || defined(ERTS_RAW_DIST_MSG_DBG)
dbg_file = stderr;
#endif