From: yangxx Date: Wed, 23 Jul 2003 18:19:29 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@130 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3359 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=542ceddd71b4a9e5d603009632a60fdf4e77fd91;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@130 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index f1751514..80864917 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -150,7 +150,7 @@ void ltt_tracefile_open_control(LttTrace *t, char * control_name) g_ptr_array_add(t->control_tracefiles,tf); //parse facilities tracefile to get base_id - if(strcmp(control_name,"facilities") ==0){ + if(strcmp(&control_name[strlen(control_name)-10],"facilities") ==0){ while(1){ ev = ltt_tracefile_read(tf); if(!ev)return; // end of file