Corrected DEBUG messages.
authorShirish Kalele <kalele@samba.org>
Thu, 9 Mar 2000 18:58:10 +0000 (18:58 +0000)
committerShirish Kalele <kalele@samba.org>
Thu, 9 Mar 2000 18:58:10 +0000 (18:58 +0000)
(This used to be commit a2d62cd30a25e745c4df7ecd6675babc853238f4)

source3/msdfs/msdfs_tdb.c
source3/msdfs/parse_dfs_map.c

index 1d7841bfeaeb29c593cd12c8b37076ca99b937b1..6f3b150c1e5b0b305421a5b33b0a0055ed8050ae 100644 (file)
@@ -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)
     {
index 8caa4399d0749546f546ce75b33b57ebccbc8f97..d7cc2b8725c1f3b0d3887d6d0c92e6c373c6a1b9 100644 (file)
@@ -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;
 }