projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Output warnings and errors to stderr
[babeltrace.git]
/
lib
/
callbacks.c
diff --git
a/lib/callbacks.c
b/lib/callbacks.c
index fc2c4b3d38e675e8d539e5854eed91ffd40d13f8..b3856cebc7b2449068293639715acc1b473d0bc9 100644
(file)
--- a/
lib/callbacks.c
+++ b/
lib/callbacks.c
@@
-103,7
+103,7
@@
int babeltrace_iter_add_callback(struct babeltrace_iter *iter,
(gconstpointer) (unsigned long) event);
/* event not found in this stream class */
if (!event_id_ptr) {
(gconstpointer) (unsigned long) event);
/* event not found in this stream class */
if (!event_id_ptr) {
-
printf(
"event not found\n");
+
fprintf(stderr,
"event not found\n");
continue;
}
event_id = (uint64_t)(unsigned long) *event_id_ptr;
continue;
}
event_id = (uint64_t)(unsigned long) *event_id_ptr;
@@
-151,17
+151,17
@@
struct ctf_stream_event *extract_ctf_stream_event(struct ctf_stream *stream)
uint64_t id = stream->event_id;
if (id >= stream_class->events_by_id->len) {
uint64_t id = stream->event_id;
if (id >= stream_class->events_by_id->len) {
- fprintf(std
out
, "[error] Event id %" PRIu64 " is outside range.\n", id);
+ fprintf(std
err
, "[error] Event id %" PRIu64 " is outside range.\n", id);
return NULL;
}
event = g_ptr_array_index(stream->events_by_id, id);
if (!event) {
return NULL;
}
event = g_ptr_array_index(stream->events_by_id, id);
if (!event) {
- fprintf(std
out
, "[error] Event id %" PRIu64 " is unknown.\n", id);
+ fprintf(std
err
, "[error] Event id %" PRIu64 " is unknown.\n", id);
return NULL;
}
event_class = g_ptr_array_index(stream_class->events_by_id, id);
if (!event_class) {
return NULL;
}
event_class = g_ptr_array_index(stream_class->events_by_id, id);
if (!event_class) {
- fprintf(std
out
, "[error] Event id %" PRIu64 " is unknown.\n", id);
+ fprintf(std
err
, "[error] Event id %" PRIu64 " is unknown.\n", id);
return NULL;
}
return NULL;
}
This page took
0.024131 seconds
and
4
git commands to generate.