From: Colin McCabe Subject: [PATCH 7/8 v3] chunkd: Use hail_log API to call libcldc Date: Mon, 14 Dec 2009 16:32:56 -0800 Message-ID: <1260837177-3348-8-git-send-email-cmccabe@alumni.cmu.edu> References: <1260837177-3348-1-git-send-email-cmccabe@alumni.cmu.edu> Return-path: In-Reply-To: <1260837177-3348-1-git-send-email-cmccabe@alumni.cmu.edu> Sender: hail-devel-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Project Hail List Cc: Pete Zaitcev , Jeff Garzik , Colin McCabe Signed-off-by: Colin McCabe --- server/cldu.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/server/cldu.c b/server/cldu.c index 0cf687f..da5f55f 100644 --- a/server/cldu.c +++ b/server/cldu.c @@ -615,8 +615,12 @@ int cld_begin(const char *thishost, const char *thiscell, uint32_t nid, if (!ses.forced_hosts) { GList *tmp, *host_list = NULL; int i; + struct hail_log hail_log = { + .func = applog, + .verbose = debugging, + }; - if (cldc_getaddr(&host_list, thishost, debugging, applog)) { + if (cldc_getaddr(&host_list, thishost, &hail_log)) { /* Already logged error */ goto err_addr; } @@ -692,6 +696,10 @@ void cldu_add_host(const char *hostname, unsigned int port) static struct cld_session *sp = &ses; struct cld_host *hp; int i; + struct hail_log hail_log = { + .func = applog, + .verbose = debugging, + }; for (i = 0; i < N_CLD; i++) { hp = &sp->cldv[i]; @@ -702,7 +710,7 @@ void cldu_add_host(const char *hostname, unsigned int port) return; if (cldc_saveaddr(&hp->h, 100, 100, port, strlen(hostname), hostname, - debugging, applog)) + &hail_log)) return; hp->known = 1; -- 1.6.2.5