daemon: add commented logs

This commit is contained in:
Nedko Arnaudov 2010-04-04 00:31:14 +03:00
parent 68cfe6eef4
commit e2c0400548
3 changed files with 11 additions and 1 deletions

View File

@ -414,6 +414,7 @@ char * ladish_app_supervisor_search_app(ladish_app_supervisor_handle supervisor_
app_ptr = list_entry(node_ptr, struct ladish_app, siblings);
if (app_ptr->pid == pid)
{
//log_info("app \"%s\" found by pid %llu", app_ptr->name, (unsigned long long)pid);
name = strdup(app_ptr->name);
if (name == NULL)
{
@ -427,6 +428,11 @@ char * ladish_app_supervisor_search_app(ladish_app_supervisor_handle supervisor_
return NULL;
}
const char * ladish_app_supervisor_get_name(ladish_app_supervisor_handle supervisor_handle)
{
return supervisor_ptr->name;
}
#undef supervisor_ptr
#define supervisor_ptr ((struct ladish_app_supervisor *)call_ptr->iface_context)

View File

@ -2,7 +2,7 @@
/*
* LADI Session Handler (ladish)
*
* Copyright (C) 2009 Nedko Arnaudov <nedko@arnaudov.name>
* Copyright (C) 2009, 2010 Nedko Arnaudov <nedko@arnaudov.name>
*
**************************************************************************
* This file contains interface to app supervisor object
@ -79,6 +79,8 @@ ladish_app_supervisor_search_app(
ladish_app_supervisor_handle supervisor_handle,
pid_t pid);
const char * ladish_app_supervisor_get_name(ladish_app_supervisor_handle supervisor_handle);
extern const struct dbus_interface_descriptor g_iface_app_supervisor;
#endif /* #ifndef APP_SUPERVISOR_H__712E6589_DCB1_4CE9_9812_4F250D55E8A2__INCLUDED */

View File

@ -68,6 +68,8 @@ bool get_app_name_from_supervisor(void * context, ladish_graph_handle graph, lad
ASSERT(app_find_context_ptr->app_name == NULL); /* we stop app supervisor iteration when app is found */
//log_info("checking app supervisor \"%s\" for pid %llu", ladish_app_supervisor_get_name(app_supervisor), (unsigned long long)pid);
pid = app_find_context_ptr->pid;
do
{