summaryrefslogtreecommitdiff
path: root/source3/msdfs
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2000-03-09 18:58:10 +0000
committerShirish Kalele <kalele@samba.org>2000-03-09 18:58:10 +0000
commit4e6e454c3a00ebc844e31248cc837b1d86cd357f (patch)
tree4d98ac0cdbb18008a87277adb9d66ffd42ac19e1 /source3/msdfs
parent952799d9afe028d822181831715b85521c89a7ef (diff)
downloadsamba-4e6e454c3a00ebc844e31248cc837b1d86cd357f.tar.gz
samba-4e6e454c3a00ebc844e31248cc837b1d86cd357f.tar.bz2
samba-4e6e454c3a00ebc844e31248cc837b1d86cd357f.zip
Corrected DEBUG messages.
(This used to be commit a2d62cd30a25e745c4df7ecd6675babc853238f4)
Diffstat (limited to 'source3/msdfs')
-rw-r--r--source3/msdfs/msdfs_tdb.c6
-rw-r--r--source3/msdfs/parse_dfs_map.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/source3/msdfs/msdfs_tdb.c b/source3/msdfs/msdfs_tdb.c
index 1d7841bfea..6f3b150c1e 100644
--- a/source3/msdfs/msdfs_tdb.c
+++ b/source3/msdfs/msdfs_tdb.c
@@ -126,7 +126,11 @@ BOOL add_junction_entry(struct junction_map* junction)
DEBUG(10,("Storing key: .%s:%s.\n",tlk->service_name,tlk->volume_name));
DEBUG(10,("Data: referral_count : %u\n",tld->referral_count));
for(i=0;i<tld->referral_count;i++)
- DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",junction->referral_list[i].alternate_path));
+ {
+ struct referral* ref = &(junction->referral_list[i]);
+ DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",i+1,
+ ref->alternate_path,ref->proximity,ref->ttl));
+ }
if( tdb_store(msdfs_map,key,data,TDB_REPLACE) != 0)
{
diff --git a/source3/msdfs/parse_dfs_map.c b/source3/msdfs/parse_dfs_map.c
index 8caa4399d0..d7cc2b8725 100644
--- a/source3/msdfs/parse_dfs_map.c
+++ b/source3/msdfs/parse_dfs_map.c
@@ -86,10 +86,10 @@ BOOL parse_referral(char* s, struct referral* ref)
while( ((tok[count]=strtok(NULL,":")) != NULL) && count<MAXTOK_IN_REFERRAL)
count++;
- DEBUG(10,("parse_referral: Tokens\n"));
+ DEBUG(10,("parse_referral: Tokens"));
for(i=0;i<count;i++)
- DEBUG(10,("\t%s\n",tok[i]));
-
+ DEBUG(10,(" %s",tok[i]));
+ DEBUG(10,(".\n"));
if(count > 0)
pstrcpy(ref->alternate_path,tok[0]);
else
@@ -104,10 +104,10 @@ BOOL parse_referral(char* s, struct referral* ref)
ref->proximity = 0;
if(count > 2)
- ref->ttl = atoi(tok[1]);
+ ref->ttl = atoi(tok[2]);
else
ref->ttl = REFERRAL_TTL;
-
+
return True;
}