/* ltt_get_facility_description
*
- * Opens the trace corresponding to the requested facility (identified by fac_id
+ * Opens the file corresponding to the requested facility (identified by fac_id
* and checksum).
*
* The name searched is : %trace root%/eventdefs/facname_checksum.xml
textlen+=strlen(text);
if(textlen >= PATH_MAX) goto name_error;
strcat(desc_file_name, text);
-
+#if 0
text = "_";
textlen+=strlen(text);
if(textlen >= PATH_MAX) goto name_error;
textlen=strlen(desc_file_name);
+#endif //0
text = ".xml";
textlen+=strlen(text);
if(textlen >= PATH_MAX) goto name_error;
strcat(desc_file_name, text);
-
+
err = ltt_facility_open(f, t, desc_file_name);
if(err) goto facility_error;
if(ret == ERANGE) goto range; /* ERANGE or EPERM */
else if(ret) goto fail;
- if(ltt_time_compare(time, tf->event.event_time) < 0)
+ if(ltt_time_compare(time, tf->event.event_time) <= 0)
goto found;
}
if(ret == ERANGE) goto range; /* ERANGE or EPERM */
else if(ret) goto fail;
- if(ltt_time_compare(time, tf->event.event_time) < 0)
+ if(ltt_time_compare(time, tf->event.event_time) <= 0)
break;
}
goto found;