projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: rename `lib-logging.h` to `logging.h`
[babeltrace.git]
/
src
/
lib
/
lib-logging.c
diff --git
a/src/lib/lib-logging.c
b/src/lib/lib-logging.c
index d6d75e05e5b20a7413d5683806b1c24d72094366..60ed8b6b82bafc2d6522537da4d6cd2dad470ddf 100644
(file)
--- a/
src/lib/lib-logging.c
+++ b/
src/lib/lib-logging.c
@@
-20,7
+20,11
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#define BT_LOG_TAG "LIB-LOGGING"
+/*
+ * This is just to satisfy the preprocessor check in "lib/logging.h":
+ * this file does not log anything.
+ */
+#define BT_LOG_TAG ""
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
@@
-55,7
+59,7
@@
#include "graph/message/stream-activity.h"
#include "graph/message/stream.h"
#include "graph/port.h"
#include "graph/message/stream-activity.h"
#include "graph/message/stream.h"
#include "graph/port.h"
-#include "l
ib-l
ogging.h"
+#include "logging.h"
#include "plugin/plugin.h"
#include "plugin/plugin-so.h"
#include "trace-ir/clock-class.h"
#include "plugin/plugin.h"
#include "plugin/plugin-so.h"
#include "trace-ir/clock-class.h"
@@
-1051,8
+1055,9
@@
static inline void format_component(char **buf_ch, bool extended,
{
char tmp_prefix[TMP_PREFIX_LEN];
{
char tmp_prefix[TMP_PREFIX_LEN];
- BUF_APPEND(", %sname=\"%s\"",
- PRFIELD_GSTRING(component->name));
+ BUF_APPEND(", %sname=\"%s\", %slog-level=%s",
+ PRFIELD_GSTRING(component->name),
+ PRFIELD(bt_common_logging_level_string(component->log_level)));
if (component->class) {
SET_TMP_PREFIX("class-");
if (component->class) {
SET_TMP_PREFIX("class-");
This page took
0.024381 seconds
and
4
git commands to generate.