diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-06-16 10:12:52 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-06-16 23:15:28 +0200 |
commit | eb15bb261a09c7e87707da042887ccfd7ef58417 (patch) | |
tree | adddf47b61c304ee835ebabd7caaf065baeb2fe9 /erts/epmd/src/epmd.c | |
parent | 92e6fb7f31ad8977144a1cfbcee05895839dbc62 (diff) | |
download | otp-eb15bb261a09c7e87707da042887ccfd7ef58417.tar.gz otp-eb15bb261a09c7e87707da042887ccfd7ef58417.tar.bz2 otp-eb15bb261a09c7e87707da042887ccfd7ef58417.zip |
Revert "Add missing error string to syslog logging in epmd"
This reverts commit e2c11e89563f0c11794c91193b29bce00ca9c740.
Diffstat (limited to 'erts/epmd/src/epmd.c')
-rw-r--r-- | erts/epmd/src/epmd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c index 447aae47aa..2fd9845d1a 100644 --- a/erts/epmd/src/epmd.c +++ b/erts/epmd/src/epmd.c @@ -498,11 +498,7 @@ static void dbg_gen_printf(int onsyslog,int perr,int from_level, #ifdef HAVE_SYSLOG_H if (onsyslog) { - int len; - len = erts_vsnprintf(buf, DEBUG_BUFFER_SIZE, format, args); - if (perr != 0 && len < sizeof(buf)) { - erts_snprintf(buf+len, sizeof(buf)-len, ": %s", strerror(perr)); - } + erts_vsnprintf(buf, DEBUG_BUFFER_SIZE, format, args); syslog(LOG_ERR,"epmd: %s",buf); } #endif |