From: Robert Spalek Date: Sun, 23 Apr 2006 13:04:20 +0000 (+0200) Subject: conf2: sorry, fix the commit-hook messages X-Git-Tag: holmes-import~645^2~11^2~64 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=13c45b3140e83062152db9729b1a10ff0dcaf84b;p=libucw.git conf2: sorry, fix the commit-hook messages --- diff --git a/lib/conf2.c b/lib/conf2.c index c8b6d315..ec9a532f 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -246,8 +246,7 @@ commit_section(byte *name, struct cf_section *sec, void *ptr) for (ci=sec->cfg; ci->cls; ci++) if (ci->cls == CC_SECTION) { if (commit_section(ci->name, ci->u.sec, ptr + (addr_int_t) ci->ptr)) { - if (sec != §ions) - log(L_ERROR, "It was in section %s", name); + log(L_ERROR, "It happened in section %s", ci->name); return 1; } } else if (ci->cls == CC_LIST) { @@ -255,7 +254,7 @@ commit_section(byte *name, struct cf_section *sec, void *ptr) uns idx = 0; CLIST_WALK(n, * (clist*) (ptr + (addr_int_t) ci->ptr)) if (idx++, commit_section(ci->name, ci->u.sec, n)) { - log(L_ERROR, "It was in the node #%d of list %s", idx, name); + log(L_ERROR, "It happened in node #%d of list %s", idx, ci->name); return 1; } }