#include "fwp_idl.h"
#include "fwp_admctrl.h"
#include <ul_log.h>
+#include <ul_logreg.h>
UL_LOG_CUST(ulogd_fwp_admctrl);
-ul_log_domain_t ulogd_frm_aqcpu = {UL_LOGL_MSG, "fwp_admctrl"};
+ul_log_domain_t ulogd_fwp_admctrl = {UL_LOGL_MSG, "fwp_admctrl"};
+UL_LOGREG_SINGLE_DOMAIN_INIT_FUNCTION(fwp_admctrl_logreg_domains, ulogd_fwp_admctrl);
/* TODO: Find out the real value and determine what influences it (MTU
* of the interface minus header sizes?). */
basic = fres_contract_get_basic(c->contract);
frsh_network_budget_to_bytes(FRSH_NETPF_FWP,&basic->budget,&bytes);
- printf(" processing: id=%s, period=%ld ms, budget=%lu bytes\n",
+ ul_logmsg("processing: id=%s, period=%ld ms, budget=%lu bytes\n",
id,
fosa_rel_time_to_msec(basic->period),
(long unsigned int)bytes);
goto not_schedulable;
}
scenario->utilization = utilization/100; /* For GUI */
-
+
+ ul_logmsg("accepted\n");
*schedulable = true;
return 0;
not_schedulable:
+ ul_logmsg("rejected\n");
*schedulable = false;
return 0;
}