s3: Make "smbcontrol xx debuglevel" print the correct cluster pid
authorVolker Lendecke <vl@samba.org>
Fri, 5 Mar 2010 16:06:08 +0000 (17:06 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 5 Mar 2010 16:07:57 +0000 (17:07 +0100)
source3/utils/smbcontrol.c

index 564538602823d95211ae592de1185affd3365ba3..e97d5541799f69619c099ac5b56648475fcde171 100644 (file)
@@ -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++;
 }