#include <ul_log.h>
#include "iop.h"
-extern UL_LOG_CUST(ulogd_exec_req);
+extern UL_LOG_CUST(ulogd_forb_exec_req);
void forb_exec_req_process(forb_exec_req_t *exec_req)
{
#include <forb/config.h>
#include "proto.h"
#include <ul_logreg.h>
+#include <ul_log.h>
#ifdef CONFIG_FORB_PROTO_UNIX
#include <forb/proto_unix.h>
#endif
#include <stdio.h>
+#ifdef DEBUG
+#define UL_LOGL_DEF UL_LOGL_DEB
+#else
#define UL_LOGL_DEF UL_LOGL_ERR
+#endif
#include "log_domains.inc"
+extern UL_LOG_CUST(ulogd_forb);
+
+
static void
destroy_forb_on_exit(int exitcode, void *arg)
{
object->instance_data = forb;
forb_server_id_init(&forb->server_id);
+ {
+ char str[128];
+ ul_logdeb("Initializing forb %s\n",
+ forb_server_id_to_string(str, &forb->server_id, sizeof(str)));
+ }
if (fosa_mutex_init(&forb->request_id_mutex, 0) != 0) goto err2;
if (fosa_mutex_init(&forb->port_mutex, 0) != 0) goto err2;
forb_port_init_head(forb);
#define VER(major, minor) ((major)<<8 || (minor))
-extern UL_LOG_CUST(ulogd_iop);
+extern UL_LOG_CUST(ulogd_forb_iop);
CORBA_boolean
process_request(port, codec, mh->message_size);
break;
case forb_iop_REPLY:
- process_reply(port, codec);
+ process_reply(port, codec);
break;
case forb_iop_HELLO:
- process_hello(port, codec);
+ process_hello(port, codec);
break;
default:
+ ul_logmsg("rcvd unknown message type\n");
break;
}
if (CDR_data_size(codec) != data_size - mh->message_size) {
- ul_logerr("Message handled incorrectly\n");
+ ul_logerr("Message of type %d handled incorrectly\n", mh->message_type);
}
}
#include "proto.h"
#include <ul_log.h>
-extern UL_LOG_CUST(ulogd_request);
+extern UL_LOG_CUST(ulogd_forb_request);
static inline int forb_request_cmp(CORBA_unsigned_long *a, CORBA_unsigned_long *b)
{