diskutil: Fix a debug statement in get_io_ticks()
authorBart Van Assche <bvanassche@acm.org>
Thu, 13 Jul 2023 17:04:06 +0000 (10:04 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 13 Jul 2023 19:51:27 +0000 (12:51 -0700)
Report correctly whether or not reading statistics succeeded.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
diskutil.c

index 8aff82ee11c643b9df18d3ff23c1e1cc53ca9451..cf4ede85773b09082406229a5eebc473e2e49945 100644 (file)
@@ -73,7 +73,7 @@ static int get_io_ticks(struct disk_util *du, struct disk_util_stat *dus)
                     &dus->s.ticks[1],
                     &dus->s.io_ticks, &dus->s.time_in_queue);
        fclose(f);
-       dprint(FD_DISKUTIL, "%s: stat read ok? %d\n", du->path, ret == 1);
+       dprint(FD_DISKUTIL, "%s: stat read ok? %d\n", du->path, ret == 10);
        return ret != 10;
 }