]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Replace two %d with %u's.
authorKarsten Loesing <karsten.loesing@gmx.net>
Mon, 13 Jul 2009 20:11:21 +0000 (22:11 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Mon, 13 Jul 2009 20:11:21 +0000 (22:11 +0200)
src/or/rephist.c

index 73dd1315edc38f9d01e1836826128b341a436375..f98766444928455d1ed30060f3cc6a5763738a02 100644 (file)
@@ -1434,7 +1434,7 @@ write_exit_stats(time_t when)
              < EXIT_STATS_THRESHOLD)) {
           uint32_t num = round_to_next_multiple_of(exit_streams[i],
                                        EXIT_STATS_ROUND_UP_STREAMS);
-          if (fprintf(out, "%s%d=%d",
+          if (fprintf(out, "%s%d=%u",
                       comma++ ? "," : "", i, num)<0)
             goto done;
         } else
@@ -1443,7 +1443,7 @@ write_exit_stats(time_t when)
     }
     other_streams = round_to_next_multiple_of(other_streams,
                                   EXIT_STATS_ROUND_UP_STREAMS);
-    if (fprintf(out, "%sother=%d\n",
+    if (fprintf(out, "%sother=%u\n",
                 comma ? "," : "", other_streams)<0)
       goto done;
     /* Reset counters */