/*
- * $Id: nfsquota.c,v 1.5 2001-12-03 05:03:38 jmarcus Exp $
+ * $Id: nfsquota.c,v 1.6 2002-01-04 04:45:47 sibaz Exp $
*
* parts of this are lifted from the bsd quota program and are
* therefore under the following copyright:
#include <sys/socket.h>
#include <sys/param.h> /* for DEV_BSIZE */
#include <sys/time.h> /* <rpc/rpc.h> on ultrix doesn't include this */
-#include <syslog.h>
+#include <atalk/logger.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
/* figure out the host and path */
if ((hostpath = strchr(vol->v_gvs, ':')) == NULL) {
- syslog(LOG_ERR, "can't find hostname for %s", vol->v_gvs);
+ LOG(log_error, logtype_default, "can't find hostname for %s", vol->v_gvs);
return AFPERR_PARAM;
}
if(callaurpc(vol, RQUOTAPROG, RQUOTAVERS, RQUOTAPROC_GETQUOTA,
(xdrproc_t) xdr_getquota_args, (char *) &gq_args,
(xdrproc_t) xdr_getquota_rslt, (char *) &gq_rslt) != 0) {
- syslog(LOG_INFO, "nfsquota: can't retrieve nfs quota information. \
+ LOG(log_info, logtype_default, "nfsquota: can't retrieve nfs quota information. \
make sure that rpc.rquotad is running on %s.", vol->v_gvs);
*hostpath = ':';
return AFPERR_PARAM;
break;
case Q_EPERM:
- syslog(LOG_ERR, "nfsquota: quota permission error, host: %s\n",
+ LOG(log_error, logtype_default, "nfsquota: quota permission error, host: %s\n",
vol->v_gvs);
break;
break;
default:
- syslog(LOG_INFO, "bad rpc result, host: %s\n", vol->v_gvs);
+ LOG(log_info, logtype_default, "bad rpc result, host: %s\n", vol->v_gvs);
break;
}