summaryrefslogtreecommitdiffstats
path: root/source3/lib/messages.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-09 13:06:45 +0000
committerVolker Lendecke <vl@samba.org>2014-07-24 21:41:10 +0200
commit7f623cbe7913d3a7572e8467d45b03b534f1534a (patch)
treeef8731134531c7b60445141041d2e27850199593 /source3/lib/messages.c
parent3f6926d94e536d05f4efe8cb44d0da71f6f74807 (diff)
downloadsamba-7f623cbe7913d3a7572e8467d45b03b534f1534a.tar.gz
samba-7f623cbe7913d3a7572e8467d45b03b534f1534a.tar.xz
samba-7f623cbe7913d3a7572e8467d45b03b534f1534a.zip
messaging3: Remove two procid_str_static calls
... and thus implicit talloc_tos() calls Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r--source3/lib/messages.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 9514392c03..9d77bf8021 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -90,6 +90,7 @@ static void ping_message(struct messaging_context *msg_ctx,
struct server_id src,
DATA_BLOB *data)
{
+ struct server_id_buf idbuf;
const char *msg = "none";
char *free_me = NULL;
@@ -98,8 +99,8 @@ static void ping_message(struct messaging_context *msg_ctx,
data->length);
msg = free_me;
}
- DEBUG(1,("INFO: Received PING message from PID %s [%s]\n",
- procid_str_static(&src), msg));
+ DEBUG(1, ("INFO: Received PING message from PID %s [%s]\n",
+ server_id_str_buf(src, &idbuf), msg));
TALLOC_FREE(free_me);
messaging_send(msg_ctx, src, MSG_PONG, data);
}
@@ -143,13 +144,15 @@ static int traverse_fn(struct db_record *rec, const struct server_id *id,
(const uint8_t *)msg_all->buf, msg_all->len);
if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) {
+ struct server_id_buf idbuf;
/*
* If the pid was not found delete the entry from
* serverid.tdb
*/
- DEBUG(2, ("pid %s doesn't exist\n", procid_str_static(id)));
+ DEBUG(2, ("pid %s doesn't exist\n",
+ server_id_str_buf(*id, &idbuf)));
dbwrap_record_delete(rec);
}