summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-07-29 16:17:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-07-29 16:19:21 +0100
commit8c6ecfe6488dff93090d5d0a2d814466804bc7de (patch)
tree68f984731817bf057ab521fd2a3dbf3b36bd04d7 /perf
parent8c1aed17ca5dafb00175ac413d56760a3ef012f9 (diff)
[perf] Remove the warning about failing to open a directory
The warning is repeated in the error message if we fail to find any traces, and now that we search a path it is likely that some elements do not exist. Thus we annoy the user with irrelevant, non-fatal warnings. Still looking for suggestions for the most appropriate home for the system wide cairo-traces dir...
Diffstat (limited to 'perf')
-rw-r--r--perf/cairo-perf-trace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c
index abe9b1e1..a7bfbbaa 100644
--- a/perf/cairo-perf-trace.c
+++ b/perf/cairo-perf-trace.c
@@ -655,10 +655,8 @@ cairo_perf_trace_dir (cairo_perf_t *perf,
int num_traces = 0;
dir = opendir (dirname);
- if (dir == NULL) {
- fprintf (stderr, "Failed to open directory '%s'\n", dirname);
+ if (dir == NULL)
return 0;
- }
while ((de = readdir (dir)) != NULL) {
char *trace;