projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
863b75b
)
log with pid
author
Christian Grothoff
<christian@grothoff.org>
Tue, 23 Nov 2010 13:37:43 +0000
(13:37 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 23 Nov 2010 13:37:43 +0000
(13:37 +0000)
src/util/common_logging.c
patch
|
blob
|
history
diff --git
a/src/util/common_logging.c
b/src/util/common_logging.c
index 74f28ff7686662434b8c71c38fe4591c6394336b..1a32c44bcf6cdfb8c6191af1176efdfae9d3a696 100644
(file)
--- 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);
}