projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: use BT_LIB_LOG*_APPEND_CAUSE() where appropriate
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
clock-snapshot-set.h
diff --git
a/src/lib/trace-ir/clock-snapshot-set.h
b/src/lib/trace-ir/clock-snapshot-set.h
index 855744b2fae9ea76b2452894643d2b8ee3ee1b43..ec790aff66676e46223ba92c708fa81379f5294a 100644
(file)
--- a/
src/lib/trace-ir/clock-snapshot-set.h
+++ b/
src/lib/trace-ir/clock-snapshot-set.h
@@
-23,6
+23,11
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+/* Protection: this file uses BT_LIB_LOG*() macros directly */
+#ifndef BT_LIB_LOG_SUPPORTED
+# error Please include "lib/logging.h" before including this file.
+#endif
+
#include <stdint.h>
#include <glib.h>
#include "common/assert.h"
#include <stdint.h>
#include <glib.h>
#include "common/assert.h"
@@
-50,7
+55,7
@@
int bt_clock_snapshot_set_initialize(struct bt_clock_snapshot_set *cs_set)
cs_set->clock_snapshots = g_ptr_array_sized_new(1);
if (!cs_set->clock_snapshots) {
cs_set->clock_snapshots = g_ptr_array_sized_new(1);
if (!cs_set->clock_snapshots) {
- BT_L
OGE_STR
("Failed to allocate one GPtrArray.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate one GPtrArray.");
ret = -1;
goto end;
}
ret = -1;
goto end;
}
@@
-132,7
+137,8
@@
int bt_clock_snapshot_set_set_clock_snapshot(struct bt_clock_snapshot_set *cs_se
if (!clock_snapshot) {
clock_snapshot = bt_clock_snapshot_create(cc);
if (!clock_snapshot) {
if (!clock_snapshot) {
clock_snapshot = bt_clock_snapshot_create(cc);
if (!clock_snapshot) {
- BT_LIB_LOGE("Cannot create a clock snapshot from a clock class: "
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Cannot create a clock snapshot from a clock class: "
"%![cc-]+K", cc);
ret = -1;
goto end;
"%![cc-]+K", cc);
ret = -1;
goto end;
This page took
0.023563 seconds
and
4
git commands to generate.