diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/grab-async.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ad30d3c..89351d9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ if (GTK2_FOUND) target_link_libraries(control uca ${GTK2_LIBRARIES} - ${GTHREAD2_LIBRARIES} + ${GTHREAD2_LIBRARIES} ) endif() diff --git a/test/grab-async.c b/test/grab-async.c index 0a7d33f..945bf15 100644 --- a/test/grab-async.c +++ b/test/grab-async.c @@ -16,12 +16,14 @@ void grab_callback(uint64_t image_number, void *buffer, void *meta_data, void *u const int pixel_size = props->bits == 8 ? 1 : 2; char filename[256]; - sprintf(filename, "out-%04llu.raw", image_number); + sprintf(filename, "out-%04i.raw", (int) image_number); FILE *fp = fopen(filename, "wb"); fwrite(buffer, props->width * props->height, pixel_size, fp); fclose(fp); - printf("grabbed picture %llu at %p (%ix%i @ %i bits)\n", image_number, buffer, props->width, props->height, props->bits); + printf("grabbed picture %i at %p (%ix%i @ %i bits)\n", + (int) image_number, buffer, + props->width, props->height, props->bits); } int main(int argc, char *argv[]) |