aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-08-21 16:29:28 +0200
committerLukas Larsson <[email protected]>2014-08-21 16:29:28 +0200
commita499a783bd7edbba856e61e490137dea4dab67e3 (patch)
tree0f3ac0850702d3f2882787c62419c0ea6c613d50 /erts/epmd/src/epmd.c
parent958d0dd98b571f3dd148c764c374babac3d53057 (diff)
parentcffe162d9ddce58b2aaf71a102f3b6c6738a2029 (diff)
downloadotp-a499a783bd7edbba856e61e490137dea4dab67e3.tar.gz
otp-a499a783bd7edbba856e61e490137dea4dab67e3.tar.bz2
otp-a499a783bd7edbba856e61e490137dea4dab67e3.zip
Merge branch 'maint'
* maint: Add number of entries to mnesia copy debug message Add thread index to allocator enomem dump slogan Add run queue index to process dump info Add missing error string to syslog logging in epmd Demote rare debug slogan of message discarding to debug build
Diffstat (limited to 'erts/epmd/src/epmd.c')
-rw-r--r--erts/epmd/src/epmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index 3cfa7a782f..9630e0cdf0 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -498,7 +498,11 @@ static void dbg_gen_printf(int onsyslog,int perr,int from_level,
#ifdef HAVE_SYSLOG_H
if (onsyslog)
{
- erts_vsnprintf(buf, DEBUG_BUFFER_SIZE, format, args);
+ 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));
+ }
syslog(LOG_ERR,"epmd: %s",buf);
}
#endif