[Groonga-commit] groonga/groonga [master] fix print format type.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 9月 17日 (金) 12:10:21 JST


Kouhei Sutou	2010-09-17 03:10:21 +0000 (Fri, 17 Sep 2010)

  New Revision: 790f163a50aaec68568d54896f00f6a02e4849c4

  Log:
    fix print format type.

  Modified files:
    src/grntest.c

  Modified: src/grntest.c (+2 -2)
===================================================================
--- src/grntest.c    2010-09-17 02:56:59 +0000 (b9cf6ef)
+++ src/grntest.c    2010-09-17 03:10:21 +0000 (465fed9)
@@ -1506,9 +1506,9 @@ get_sysinfo(const char *path, char *result, int olen)
   }
 
   if (grntest_outtype == OUT_TSV) {
-    sprintf(tmpbuf, "%ldKBytes\n", vfsbuf.f_blocks * 4);
+    sprintf(tmpbuf, "%luKBytes\n", vfsbuf.f_blocks * 4);
   } else {
-    sprintf(tmpbuf, "  \"HDD\": \"%ldKBytes\",\n", vfsbuf.f_blocks * 4);
+    sprintf(tmpbuf, "  \"HDD\": \"%luKBytes\",\n", vfsbuf.f_blocks * 4);
   }
   strcat(result, tmpbuf);
 




Groonga-commit メーリングリストの案内
Back to archive index