From 31353099a886fc4fac4293989330847ea51e44d0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 24 Jun 2012 23:41:32 +0200 Subject: add a debug message for showing starting of instances --- instance.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'instance.c') diff --git a/instance.c b/instance.c index 41b9419..f530ba5 100644 --- a/instance.c +++ b/instance.c @@ -64,6 +64,7 @@ instance_start(struct service_instance *in) return; } + DPRINTF("Started instance %s::%s\n", in->srv->name, in->name); in->proc.pid = pid; uloop_process_add(&in->proc); } @@ -201,8 +202,9 @@ instance_free(struct service_instance *in) } void -instance_init(struct service_instance *in, struct blob_attr *config) +instance_init(struct service_instance *in, struct service *s, struct blob_attr *config) { + in->srv = s; in->name = blobmsg_name(config); in->config = config; in->timeout.cb = instance_timeout; -- cgit v1.2.3