#include <ul_logreg.h>
static UL_LOG_CUST(ulogd);
-static ul_log_domain_t ulogd = {UL_LOGL_MSG, "fcb_contract_log"};
+static ul_log_domain_t ulogd = {UL_LOGL_MSG, "contract_log"};
UL_LOGREG_SINGLE_DOMAIN_INIT_FUNCTION(init_ulogd_contract_log, ulogd);
void
char str[1000];
fres_contract_to_string2(str, sizeof(str), c, 4, 0);
ul_logdeb("%s #%d:\n%s", prefix, index, str);
-}
+ }
+ else {
+ char res_name[10] = "";
+ frsh_contract_label_t label = "";
+ fres_block_resource *block_res;
+ fres_block_label *block_label;
+ char *p;
+ block_res = fres_contract_get_resource(c);
+ if (block_res)
+ fres_block_to_string(res_name, sizeof(res_name),
+ FRES_BLOCK_RESOURCE, block_res);
+ block_label = fres_contract_get_label(c);
+ if (block_label)
+ strcpy(label, block_label->label);
+
+ for (p=res_name; *p!='\n' && *p!=0; p++);
+ *p = 0;
+
+ ul_logmsg("%s: %s %s\n", prefix, res_name, label);
+ }
}