- yaz_log(level, "%s: dom filter %s%s: %s",
- tinfo->fname ? tinfo->fname : "none",
- node_path ? "in " : "",
- node_path ? (const char *) node_path : "", buf);
-
- if (node_path)
- xmlFree(node_path);
+ if (ptr)
+ {
+ yaz_log(level, "%s:%ld: %s", tinfo->fname ? tinfo->fname : "none",
+ xmlGetLineNo(ptr), buf);
+ }
+ else
+ {
+ yaz_log(level, "%s: %s", tinfo->fname ? tinfo->fname : "none", buf);
+ }