add column to error output
authorKlaus Kaempf <kkaempf@suse.de>
Mon, 18 Feb 2008 09:44:34 +0000 (09:44 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Mon, 18 Feb 2008 09:44:34 +0000 (09:44 +0000)
tools/repo_patchxml.c

index b83e578..c0eb2fd 100644 (file)
@@ -678,7 +678,7 @@ repo_add_patchxml(Repo *repo, FILE *fp, int flags)
       l = fread(buf, 1, sizeof(buf), fp);
       if (XML_Parse(parser, buf, l, l == 0) == XML_STATUS_ERROR)
        {
-         fprintf(stderr, "repo_patchxml: %s at line %u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser));
+         fprintf(stderr, "repo_patchxml: %s at line %u:%u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser), (unsigned int)XML_GetCurrentColumnNumber(parser));
          exit(1);
        }
       if (l == 0)