Fixed the sorting and parsing of traces with payloads
[blktrace.git] / blktrace.c
index c7150f24c19233247da921057db7d00bdf9f30a4..2681a8e3191144bc20200c4b4c85aab1f2f7fcfa 100644 (file)
@@ -166,8 +166,8 @@ void *extract(void *arg)
                                        tip->cpu, ip);
                                exit(1);
                        } else if (ret > 0) {
-                               fprintf(stderr,"Thread %d misread %s %d,%ld\n",
-                                       tip->cpu, ip, ret, sizeof(t));
+                               fprintf(stderr,"Thread %d misread %s %d,%d\n",
+                                       tip->cpu, ip, ret, (int)sizeof(t));
                                exit(1);
                        } else {
                                usleep(10000);