From: Christian Grothoff Date: Tue, 23 Nov 2010 13:37:43 +0000 (+0000) Subject: log with pid X-Git-Tag: initial-import-from-subversion-38251~19642 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e1575262ecd499d389438e75197e71ea7aa1d966;p=oweals%2Fgnunet.git log with pid --- diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 74f28ff76..1a32c44bc 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -436,8 +436,15 @@ GNUNET_log_from (enum GNUNET_ErrorType kind, const char *comp, const char *message, ...) { va_list va; + char comp_w_pid[128]; + va_start (va, message); - mylog (kind, comp, message, va); + GNUNET_snprintf (comp_w_pid, + sizeof (comp_w_pid), + "%s-%d", + comp, + getpid()); + mylog (kind, comp_w_pid, message, va); va_end (va); }