summaryrefslogtreecommitdiff
path: root/tests/gem_pwrite.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 00:36:04 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 00:36:04 +0200
commite624fa8a2e1a31494c6e47a65e378e480882422d (patch)
treea79a5450e756efc23ebad0dcb1494ace10c9b66b /tests/gem_pwrite.c
parent351e7d395041b4b87ad28a201c81acac40cb397f (diff)
tests: sprinkle igt logging
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_pwrite.c')
-rw-r--r--tests/gem_pwrite.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c
index 4d47f6f2..6378b0a4 100644
--- a/tests/gem_pwrite.c
+++ b/tests/gem_pwrite.c
@@ -123,10 +123,10 @@ int main(int argc, char **argv)
gettimeofday(&start, NULL);
do_gem_write(fd, dst, src, object_size, count);
gettimeofday(&end, NULL);
- printf("Time to pwrite %d bytes x %6d: %7.3fµs, %s\n",
- object_size, count,
- elapsed(&start, &end, count),
- bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
+ igt_info("Time to pwrite %d bytes x %6d: %7.3fµs, %s\n",
+ object_size, count,
+ elapsed(&start, &end, count),
+ bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
fflush(stdout);
}
}
@@ -141,10 +141,10 @@ int main(int argc, char **argv)
gettimeofday(&start, NULL);
do_gem_write(fd, dst, src, object_size, count);
gettimeofday(&end, NULL);
- printf("Time to %s pwrite %d bytes x %6d: %7.3fµs, %s\n",
- c->name, object_size, count,
- elapsed(&start, &end, count),
- bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
+ igt_info("Time to %s pwrite %d bytes x %6d: %7.3fµs, %s\n",
+ c->name, object_size, count,
+ elapsed(&start, &end, count),
+ bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
fflush(stdout);
}
}