git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d284103
)
s3: Make "smbcontrol xx debuglevel" print the correct cluster pid
author
Volker Lendecke
<vl@samba.org>
Fri, 5 Mar 2010 16:06:08 +0000
(17:06 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 10 Mar 2010 12:22:33 +0000
(13:22 +0100)
source3/utils/smbcontrol.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcontrol.c
b/source3/utils/smbcontrol.c
index 7fab6eb4b26aae085db0af9b560fe49ae33ecde0..1c2bb5003de08243fb3d0f703073393815208b84 100644
(file)
--- 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++;
}