From 4e6e454c3a00ebc844e31248cc837b1d86cd357f Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Thu, 9 Mar 2000 18:58:10 +0000 Subject: Corrected DEBUG messages. (This used to be commit a2d62cd30a25e745c4df7ecd6675babc853238f4) --- source3/msdfs/msdfs_tdb.c | 6 +++++- source3/msdfs/parse_dfs_map.c | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'source3/msdfs') 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;ireferral_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 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; } -- cgit