From fce6e1def8539f1516827118d0cf10a12d1d91a0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 5 Mar 2010 17:06:08 +0100 Subject: s3: Make "smbcontrol xx debuglevel" print the correct cluster pid --- source3/utils/smbcontrol.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 5645386028..e97d554179 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -109,8 +109,12 @@ static void print_pid_string_cb(struct messaging_context *msg, struct server_id pid, DATA_BLOB *data) { - printf("PID %u: %.*s", (unsigned int)procid_to_pid(&pid), - (int)data->length, (const char *)data->data); + char *pidstr; + + pidstr = procid_str(talloc_tos(), &pid); + printf("PID %s: %.*s", pidstr, (int)data->length, + (const char *)data->data); + TALLOC_FREE(pidstr); num_replies++; } -- cgit