@@ -81,7 +81,7 @@ void simulate(reader_t *reader, cache_t *cache, int report_interval,
8181
8282 if (!ignore_obj_size ) convert_size_to_str (cache -> cache_size , size_str );
8383#pragma GCC diagnostic push
84- #pragma GCC diagnostic ignored "-Wformat-truncation"
84+ // Removed unknown pragma warning
8585 if (!ignore_obj_size ) {
8686 snprintf (output_str , 1024 ,
8787 "%s %s cache size %8s, %16lu req, miss ratio %.4lf, throughput "
@@ -91,10 +91,11 @@ void simulate(reader_t *reader, cache_t *cache, int report_interval,
9191 (double )req_cnt / 1000000.0 / runtime );
9292 } else {
9393 snprintf (output_str , 1024 ,
94- "%s %s cache size %8ld , %16lu req, miss ratio %.4lf, throughput "
94+ "%s %s cache size %8lld , %16lu req, miss ratio %.4lf, throughput "
9595 "%.2lf MQPS\n" ,
96- reader -> trace_path , detailed_cache_name , cache -> cache_size ,
97- (unsigned long )req_cnt , (double )miss_cnt / (double )req_cnt ,
96+ reader -> trace_path , detailed_cache_name ,
97+ (long long )cache -> cache_size , (unsigned long )req_cnt ,
98+ (double )miss_cnt / (double )req_cnt ,
9899 (double )req_cnt / 1000000.0 / runtime );
99100 }
100101
0 commit comments