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)
committerMichael Adam <obnox@samba.org>
Wed, 10 Mar 2010 12:22:33 +0000 (13:22 +0100)
source3/utils/smbcontrol.c

index 7fab6eb4b26aae085db0af9b560fe49ae33ecde0..1c2bb5003de08243fb3d0f703073393815208b84 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++;
 }