Enabled also the debug build options for c++ code.
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
------------------------
- build with command: ./autobuild.sh (generates required autoconf files)
- install with command: make install
-- clean source code from generated build files: make distclean
+- clean source code from generated build files: make maintainer-clean
howto run test application
--------------------------
LDFLAGS="$LDFLAGS"
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
-AC_MSG_NOTICE([objective c Makefile])
+CXXFLAGS="$CXXFLAGS -ggdb -Wall -Werror"
+AC_SUBST(CXXFLAGS)
+AC_MSG_NOTICE([libplpbus Makefile])
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
Version: @VERSION@
Requires:
Cflags: -I${includedir} -I${includedir}/libplpbus
-Libs: -L${libdir}
+Libs: -L${libdir} -lplpbus
seq_rsp = NULL;
_server->send_dataitem_message_and_wait_response(msg_req_param->_dataItemSeq, seq_rsp);
+ return 0;
}
void BusClient::request_shutdown() {
const char *val;
item->value >>= val;
- log_debug(" [%d], value: %s\n", index, val);
+ log_debug(" [%ld], value: %s\n", index, val);
}
break;
case tk_long:
{
long val;
item->value >>= val;
- log_debug(" [%d], value: %ld\n", index, val);
+ log_debug(" [%ld], value: %ld\n", index, val);
//val_str = strdup("long");
}
break;
{
double val;
item->value >>= val;
- log_debug(" [%d], value: %f\n", index, val);
+ log_debug(" [%ld], value: %f\n", index, val);
//val_str = strdup("double");
}
break;
{
float val;
item->value >>= val;
- log_debug(" [%d] name: %s, value: %f\n", index, val);
+ log_debug(" [l%ld] value: %f\n", index, val);
//val_str = strdup("float");
}
break;
default:
- log_error(" [%d] name, value unknown\n", index);
+ log_error(" [%ld], value unknown\n", index);
}
}
else {
- log_error(" [%d] Invalid data item name name or value\n", index);
+ log_error(" [%ld] Invalid data item name name or value\n", index);
}
}
else {
- log_error(" [%d] dataItem NULL.", index);
+ log_error(" [%ld] dataItem NULL.", index);
}
}
DataItem item;
count = _dataItemSeq.length();
- log_debug("BusMessage.printout(): parameter count: %l\n", count);
+ log_debug("BusMessage.printout(): parameter count: %ld\n", count);
for (long ii = 0; ii < count; ii++) {
item = _dataItemSeq[ii];
printout_dataitem(ii, &item);
msg_req->printout();
msg_rsp = NULL;
_listener->request_received(msg_req, &msg_rsp);
- log_debug("msg_rsp length: %d\n", msg_rsp->_dataItemSeq.length());
+ log_debug("msg_rsp length: %ld\n", msg_rsp->_dataItemSeq.length());
msg_rsp->printout();
response_listener_param->receive_response_dataitem_sequence(msg_rsp->_dataItemSeq);
}
}
catch (CORBA::NO_RESOURCES&) {
log_error("Failed to get context from name service for %s, Name service is not running or has configuration problem.\n", service_name_param);
- log_error("Things to check:\n", service_name_param);
- log_error("If you have OMNIORB_CONFIG environment variable defined, verify that omniORB.cfg file exist in that location.\n", service_name_param);
- log_error("If you do not have OMNIORB_CONFIG environment variable defined, verify that you have /etc/omniORB.cfg file\n", service_name_param);
- log_error("Verify that InitRef line is defined in omniORB.cfg file.\n", service_name_param);
+ log_error("Check-list:\n");
+ log_error("If you have OMNIORB_CONFIG environment variable defined, verify that omniORB.cfg file exist in that location.\n");
+ log_error("If you do not have OMNIORB_CONFIG environment variable defined, verify that you have /etc/omniORB.cfg file\n");
+ log_error("Verify that InitRef line is defined in omniORB.cfg file.\n");
}
catch(CORBA::SystemException& ex) {
log_error("Failed to get context from name service for %s, system error.\n", service_name_param);