diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 16:16:12 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 16:16:12 -0700 |
| commit | 1a764669a4b31a7ddbde579027242202d5bf8c31 (patch) | |
| tree | 4bbf4e3fd3c01ef40c50e7cd8f93a87f355a1153 /src/caskbench.cpp | |
| parent | 1d9754415d5fdfdbe6adcc46721575f0bbd163bb (diff) | |
Cleanup debug printfs
Diffstat (limited to 'src/caskbench.cpp')
| -rw-r--r-- | src/caskbench.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/caskbench.cpp b/src/caskbench.cpp index 5e17f08..5b0f11e 100644 --- a/src/caskbench.cpp +++ b/src/caskbench.cpp @@ -74,7 +74,7 @@ write_image_file_cairo (const char *fname, caskbench_context_t *context) assert (context->cairo_surface); cairo_status_t status = cairo_surface_status (context->cairo_surface); if (status != CAIRO_STATUS_SUCCESS) { - printf("Error writing cairo surface to file: %s\n", cairo_status_to_string(status)); + warnx("Error writing cairo surface to file: %s\n", cairo_status_to_string(status)); return; } cairo_surface_write_to_png (context->cairo_surface, fname); @@ -96,7 +96,7 @@ write_image_file_skia (const char *fname, caskbench_context_t *context) cairo_status_t status = cairo_surface_status (surface); if (status != CAIRO_STATUS_SUCCESS) { - printf("Error writing skia surface to file: %s\n", cairo_status_to_string(status)); + warnx("Error writing skia surface to file: %s\n", cairo_status_to_string(status)); return; } cairo_surface_write_to_png (surface, fname); @@ -264,7 +264,6 @@ context_setup_cairo(caskbench_context_t *context, const char* surface_type) context->update_cairo = update_cairo_image; } else if (!strncmp(surface_type, "glx", 3)) { #if defined(HAVE_GLX_H) - printf("Setting up glx\n"); context->setup_cairo = create_cairo_surface_glx; context->destroy_cairo = destroy_cairo_glx; context->update_cairo = update_cairo_glx; @@ -274,7 +273,6 @@ context_setup_cairo(caskbench_context_t *context, const char* surface_type) } else if (!strncmp(surface_type, "egl", 3)) { #if defined(HAVE_GLES2_H) || defined(HAVE_GLES3_H) - printf("Setting up egl\n"); context->setup_cairo = create_cairo_surface_egl; context->destroy_cairo = destroy_cairo_egl; context->update_cairo = update_cairo_egl; @@ -314,7 +312,6 @@ context_setup_skia(caskbench_context_t *context, const char* surface_type) context->update_skia = update_skia_image; } else if (!strncmp(surface_type, "glx", 3)) { #if defined(HAVE_GLX_H) - printf("Setting up glx\n"); context->setup_skia = create_skia_device_glx; context->destroy_skia = destroy_skia_glx; context->update_skia = update_skia_glx; @@ -324,7 +321,6 @@ context_setup_skia(caskbench_context_t *context, const char* surface_type) } else if (!strncmp(surface_type, "egl", 3)) { #if defined(HAVE_GLES2_H) || defined(HAVE_GLES3_H) - printf("Setting up egl\n"); context->setup_skia = create_skia_device_egl; context->destroy_skia = destroy_skia_egl; context->update_skia = update_skia_egl; |