git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ff11d
)
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
Volker Lendecke
<vl@samba.org>
Fri, 5 Mar 2010 16:07:57 +0000
(17:07 +0100)
source3/utils/smbcontrol.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcontrol.c
b/source3/utils/smbcontrol.c
index 564538602823d95211ae592de1185affd3365ba3..e97d5541799f69619c099ac5b56648475fcde171 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++;
}