Bug 557380: Add missing arg to printf in TestUnicodeArguments.cpp, to fix build warning. r=smontagu
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 06 Apr 2010 00:09:44 -0700
changeset 40481 bb573cd864b1b9db9ad593e528d2cbbcf7c4a597
parent 40480 43e15e2770f3ba11058c676dd04bb86e700b6738
child 40482 5c392537b34c9f78915745837982e9133d547332
push idunknown
push userunknown
push dateunknown
reviewerssmontagu
bugs557380
milestone1.9.3a4pre
Bug 557380: Add missing arg to printf in TestUnicodeArguments.cpp, to fix build warning. r=smontagu
xpcom/tests/TestUnicodeArguments.cpp
--- a/xpcom/tests/TestUnicodeArguments.cpp
+++ b/xpcom/tests/TestUnicodeArguments.cpp
@@ -38,19 +38,19 @@ int wmain(int argc, _TCHAR* argv[]) {
       printf("%x ", *(argv[i] + j));
     }
     printf("\n");
 
     if (_tcscmp(expected_utf16[i - 1], argv[i])) {
       return i;
     }
   }
-  
+
   return 0;
-} 
+}
 #else
 #include <string.h>
 #include <stdio.h>
 
 static const char* expected_utf8[args_length] = {
   // Latin-1
   "M\xC3\xB8z\xC3\xAEll\xC3\xA5",
   // Cyrillic
@@ -61,17 +61,17 @@ static const char* expected_utf8[args_le
   "\xF0\x92\x88\xAC\xF0\x92\x8D\xA3\xF0\x92\x86\xB7"
 };
 
 int main(int argc, char* argv[]) {
   if (argc != args_length + 1)
     return -1;
 
   for (int i = 1; i < argc; ++i) {
-    printf("argv[%d] = %s; expected = %s\n", argv[i], expected_utf8[i - 1]);
+    printf("argv[%d] = %s; expected = %s\n", i, argv[i], expected_utf8[i - 1]);
     if (strcmp(expected_utf8[i - 1], argv[i])) {
       return i;
     }
   }
-  
+
   return 0;
-} 
+}
 #endif