From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] Babeltrace ctf-text duplicated error message
Date: Tue, 3 Apr 2012 08:53:56 -0400 [thread overview]
Message-ID: <20120403125356.GB14534@Krystal> (raw)
In-Reply-To: <524C960C5DFC794E82BE548D825F05CF29D8A8@EU-MBX-04.mgc.mentorg.com>
* Oestman, Fredrik (Fredrik_Oestman at mentor.com) wrote:
> Hello,
>
>
> I've found what appears to be a (very minor) bug in babeltrace, see patch below.
Merged, thanks!
Mathieu
>
>
> Cheers,
>
> Fredrik ?stman
>
>
> diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c
> index 273c9b7..fa0cb4d 100644
> --- a/formats/ctf-text/ctf-text.c
> +++ b/formats/ctf-text/ctf-text.c
> @@ -236,8 +236,8 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
> return -EINVAL;
> }
> event_class = g_ptr_array_index(stream_class->events_by_id, id);
> - if (!event) {
> - fprintf(stderr, "[error] Event id %" PRIu64 " is unknown.\n", id);
> + if (!event_class) {
> + fprintf(stderr, "[error] Event class id %" PRIu64 " is unknown.\n", id);
> return -EINVAL;
> }
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2012-04-03 12:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 10:55 Oestman, Fredrik
2012-04-03 11:35 ` [lttng-dev] Writing a babeltrace output plugin Oestman, Fredrik
2012-04-03 12:57 ` Mathieu Desnoyers
2012-04-03 13:31 ` Oestman, Fredrik
2012-04-03 13:33 ` Mathieu Desnoyers
2012-04-03 13:34 ` Mathieu Desnoyers
2012-04-03 14:06 ` Oestman, Fredrik
2012-04-03 14:10 ` Mathieu Desnoyers
2012-04-03 14:21 ` Julien Desfossez
2012-04-04 7:00 ` Oestman, Fredrik
2012-04-17 6:57 ` Oestman, Fredrik
2012-04-17 15:05 ` Mathieu Desnoyers
2012-04-17 15:30 ` Alexandre Montplaisir
2012-04-17 15:44 ` Matthew Khouzam
2012-04-17 15:48 ` Mathieu Desnoyers
2012-04-03 12:53 ` Mathieu Desnoyers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120403125356.GB14534@Krystal \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox