testpat: fix printing of time
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 28 Sep 2015 06:28:39 +0000 (09:28 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 28 Sep 2015 06:28:39 +0000 (09:28 +0300)
libkms++/utils/testpat.cpp

index cd35e0e7582d280104cb1aed9881d77397d77149..56000f10c5861b73867e15d6a31cb910391863ec 100644 (file)
@@ -157,6 +157,6 @@ void draw_test_pattern(Framebuffer& fb)
        auto t2 = high_resolution_clock::now();
        auto time_span = duration_cast<microseconds>(t2 - t1);
 
        auto t2 = high_resolution_clock::now();
        auto time_span = duration_cast<microseconds>(t2 - t1);
 
-       printf("draw took %lu us\n", time_span.count());
+       printf("draw took %u us\n", (unsigned)time_span.count());
 }
 }
 }
 }