]> granicus.if.org Git - check/commitdiff
fix printf warnings
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:22:26 +0000 (03:22 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:22:26 +0000 (03:22 +0000)
fprintf was being passed arguments for items it was not printing

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@647 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c
src/check_print.c

index 7f273cdb173987c4d6a8f0604b171a9d8ee474f3..6343c57ce65c79082e170190dd3c1c2d71f4a88a 100644 (file)
@@ -267,9 +267,9 @@ void xml_lfun (SRunner *sr CK_ATTRIBUTE_UNUSED, FILE *file, enum print_output pr
   case CLSTART_S:
     s = obj;
     fprintf(file, "  <suite>\n");
-    fprintf(file, "    <title>", s->name);
+    fprintf(file, "    <title>");
     fprint_xml_esc(file, s->name);
-    fprintf(file,"</title>\n", s->name);
+    fprintf(file,"</title>\n");
     break;
   case CLEND_SR:
     break;
index b710df750d6a10054d9ae1aa869d3cd9b9b390e6..2e85d56118f70498b58d953ebcd045e580ace5d9 100644 (file)
@@ -179,10 +179,10 @@ void tr_xmlprint (FILE *file, TestResult *tr, enum print_output print_mode CK_AT
           tr->duration < 0 ? 0 : tr->duration % 1000000);
   fprintf(file, "      <description>");
   fprint_xml_esc(file, tr->tcname);
-  fprintf(file,"</description>\n", tr->tcname);
-  fprintf(file, "      <message>", tr->msg);
+  fprintf(file,"</description>\n");
+  fprintf(file, "      <message>");
   fprint_xml_esc(file, tr->msg);
-  fprintf(file,"</message>\n", tr->msg);
+  fprintf(file,"</message>\n");
   fprintf(file, "    </test>\n");
   
   if (slash != NULL) {