summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-08 18:45:18 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-08 18:46:57 +0100
commit495ac4616654c9e62e14031b7439aff21e42ec91 (patch)
treebbfb38550e541b0078695f9d181a124371f43ee9 /source3
parentdc58672c6588a1715698721153b35ed2d594bc67 (diff)
downloadsamba-495ac4616654c9e62e14031b7439aff21e42ec91.tar.gz
samba-495ac4616654c9e62e14031b7439aff21e42ec91.tar.bz2
samba-495ac4616654c9e62e14031b7439aff21e42ec91.zip
s3:smbd: add/improve some DEBUG messages in api_RNetServerEnum2()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/lanman.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index b969cd82c1..c3c30f535f 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1429,6 +1429,8 @@ static bool api_RNetServerEnum2(connection_struct *conn, uint16 vuid,
fstrcpy(domain, lp_workgroup());
}
+ DEBUG(4, ("domain [%s]\n", domain));
+
if (lp_browse_list()) {
total = get_server_info(servertype,&servers,domain);
}
@@ -1451,8 +1453,8 @@ static bool api_RNetServerEnum2(connection_struct *conn, uint16 vuid,
}
lastname = s->name;
data_len += fill_srv_info(s,uLevel,0,&f_len,0,&s_len,0);
- DEBUG(4,("fill_srv_info %20s %8x %25s %15s\n",
- s->name, s->type, s->comment, s->domain));
+ DEBUG(4,("fill_srv_info[%d] %20s %8x %25s %15s\n",
+ i, s->name, s->type, s->comment, s->domain));
if (data_len <= buf_len) {
counted++;
@@ -1487,8 +1489,8 @@ static bool api_RNetServerEnum2(connection_struct *conn, uint16 vuid,
}
lastname = s->name;
fill_srv_info(s,uLevel,&p,&f_len,&p2,&s_len,*rdata);
- DEBUG(4,("fill_srv_info %20s %8x %25s %15s\n",
- s->name, s->type, s->comment, s->domain));
+ DEBUG(4,("fill_srv_info[%d] %20s %8x %25s %15s\n",
+ i, s->name, s->type, s->comment, s->domain));
count2--;
}
}