summaryrefslogtreecommitdiff
path: root/loadparm.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-11-22 09:51:21 -0800
committerWayne Davison <wayned@samba.org>2007-11-22 09:51:21 -0800
commita6c6f8e650f9790c7827ad1ff321fe21daf522cf (patch)
tree4eebcfe4574fcd8e74a6bc726861e4e2460dd288 /loadparm.c
parentee6e80c7532696f04bd021a26b3b2e5178cf5f31 (diff)
downloadrsync-a6c6f8e650f9790c7827ad1ff321fe21daf522cf.tar.gz
rsync-a6c6f8e650f9790c7827ad1ff321fe21daf522cf.tar.bz2
rsync-a6c6f8e650f9790c7827ad1ff321fe21daf522cf.zip
Use FLOG instead of FERROR for config errors.
Diffstat (limited to 'loadparm.c')
-rw-r--r--loadparm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loadparm.c b/loadparm.c
index 67ce3bec..982fda76 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -558,7 +558,7 @@ static int map_parameter(char *parmname)
if (strwicmp(parm_table[iIndex].label, parmname) == 0)
return(iIndex);
- rprintf(FERROR, "Unknown Parameter encountered: \"%s\"\n", parmname);
+ rprintf(FLOG, "Unknown Parameter encountered: \"%s\"\n", parmname);
return(-1);
}
@@ -584,7 +584,7 @@ static BOOL set_boolean(BOOL *pb, char *parmvalue)
*pb = False;
else
{
- rprintf(FERROR, "Badly formed boolean in configuration file: \"%s\".\n",
+ rprintf(FLOG, "Badly formed boolean in configuration file: \"%s\".\n",
parmvalue);
bRetval = False;
}
@@ -671,7 +671,7 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
if (parmnum < 0)
{
- rprintf(FERROR, "IGNORING unknown parameter \"%s\"\n", parmname);
+ rprintf(FLOG, "IGNORING unknown parameter \"%s\"\n", parmname);
return(True);
}
@@ -682,7 +682,7 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
parm_ptr = def_ptr;
} else {
if (parm_table[parmnum].class == P_GLOBAL) {
- rprintf(FERROR, "Global parameter %s found in service section!\n",parmname);
+ rprintf(FLOG, "Global parameter %s found in service section!\n",parmname);
return(True);
}
parm_ptr = ((char *)pSERVICE(snum)) + PTR_DIFF(def_ptr,&sDefault);
@@ -794,7 +794,7 @@ static BOOL do_section(char *sectionname)
if ((iServiceIndex=add_a_service(&sDefault,sectionname)) < 0)
{
- rprintf(FERROR,"Failed to add a new service\n");
+ rprintf(FLOG, "Failed to add a new service\n");
return(False);
}
}