change libltt for lttctl
[lttv.git] / ltt / branches / poly / ltt / facility.c
index 5b2c8ba4f2c76188427f47884fa192bc54dd1499..f4c0acae6c939f6f488a31cbc6c9fd40d908c1fd 100644 (file)
@@ -135,6 +135,7 @@ int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname)
       freeTypes(&fac->unnamed_types);
       sequence_dispose(&fac->unnamed_types);      
       g_free(fac);
+      if(generated) break; /* use the first good match */
     }
     else {
       g_warning("facility token was expected in file %s", in.name);
@@ -147,8 +148,11 @@ int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname)
   fclose(in.fp);
 open_error:
 
-  if(!generated)
-    g_warning("Cannot find facility %s, checksum 0x%X", f->name, f->checksum);
+  if(!generated) {
+    g_warning("Cannot find facility %s, checksum 0x%X",
+        g_quark_to_string(f->name), f->checksum);
+    ret = 1;
+  }
 
   return ret;
 }
This page took 0.02272 seconds and 4 git commands to generate.