summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-05 17:06:08 +0100
committerVolker Lendecke <vl@samba.org>2010-03-05 17:07:57 +0100
commitfce6e1def8539f1516827118d0cf10a12d1d91a0 (patch)
tree0856e9c8ed9f2e9e2eee252e718d56c8e6728dd9 /source3/utils
parent91ff11d50458a951ab0adc9b37bcb0ef4ee09e15 (diff)
downloadsamba-fce6e1def8539f1516827118d0cf10a12d1d91a0.tar.gz
samba-fce6e1def8539f1516827118d0cf10a12d1d91a0.tar.bz2
samba-fce6e1def8539f1516827118d0cf10a12d1d91a0.zip
s3: Make "smbcontrol xx debuglevel" print the correct cluster pid
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c8
1 files changed, 6 insertions, 2 deletions
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++;
}