[PATCH] lib: Print own pid in messaging_init
Michael Adam
obnox at samba.org
Thu Jul 14 13:54:09 UTC 2016
On 2016-07-14 at 15:00 +0200, Volker Lendecke wrote:
> Hi!
>
> Review appreciated!
Reviewed-by: me.
Will push.
Michael
> From 426666ba6562946f039191438fac45225f29cebf Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Mon, 18 Apr 2016 16:40:22 +0200
> Subject: [PATCH] lib: Print own pid in messaging_init
>
> This turned out to be some valuable debugging aid for me
>
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
> source3/lib/messages.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/source3/lib/messages.c b/source3/lib/messages.c
> index 58878ad..c6ca19a 100644
> --- a/source3/lib/messages.c
> +++ b/source3/lib/messages.c
> @@ -387,6 +387,11 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
> register_dmalloc_msgs(ctx);
> debug_register_msgs(ctx);
>
> + {
> + struct server_id_buf tmp;
> + DBG_DEBUG("my id: %s\n", server_id_str_buf(ctx->id, &tmp));
> + }
> +
> return ctx;
> }
>
> --
> 1.9.1
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160714/b9721d4c/signature.sig>
More information about the samba-technical
mailing list