From c50091a15dfba24b75e74a84c9741c58beafe403 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 27 May 2009 16:13:24 +0200 Subject: [PATCH] Updated logging in allocator --- fwp/lib/frsh_fwp/fwp_fra.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fwp/lib/frsh_fwp/fwp_fra.c b/fwp/lib/frsh_fwp/fwp_fra.c index b466306..2c17776 100644 --- a/fwp/lib/frsh_fwp/fwp_fra.c +++ b/fwp/lib/frsh_fwp/fwp_fra.c @@ -83,7 +83,7 @@ static int create_vres(fres_vres_t *vres, void *priv) vres->priv = fwp_vresd; fres_contract_id_to_string(id, &vres->id, sizeof(id)); - printf("Creating FWP VRes (id=%s, period=%ld ms, budget=%ld bytes AC=%d)\n", + ul_logmsg("Creating FWP VRes (id=%s, period=%ld ms, budget=%ld bytes AC=%d)\n", id, fosa_rel_time_to_msec(basic->period), vparams.budget, vparams.ac_id); @@ -101,7 +101,7 @@ static int cancel_vres(fres_vres_t *vres, void *priv) basic = fres_contract_get_basic(vres->allocated); fres_contract_id_to_string(id, &vres->id, sizeof(id)); - printf("Creating FWP VRes (id=%s, period=%ld ms, budget=%ld bytes)\n", + ul_logmsg("Canceling FWP VRes (id=%s, period=%ld ms, budget=%ld bytes)\n", id, fosa_rel_time_to_msec(basic->period), basic->budget.tv_sec); return 0; @@ -109,6 +109,7 @@ static int cancel_vres(fres_vres_t *vres, void *priv) int change_vres(fres_vres_t *vres, void *priv) { + ul_logerr("Change of FWP VRes not implemented!\n"); return 0; } -- 2.39.2