src.ctf.fs: append error causes in ctf_fs_file_open
[babeltrace.git] / src / logging / log.c
index d8c80402c56374d671f428c39dd4921edf671115..093930d222ff0dff47b22a6c748af5c8e30653c7 100644 (file)
@@ -4,7 +4,7 @@
  * See LICENSE.
  */
 
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include "common/common.h"
 #include <pthread.h>
 #include "common/assert.h"
@@ -108,7 +108,7 @@ extern unsigned long pthread_getsequence_np(pthread_t *);
  * level variable. In that case it must be defined elsewhere using
  * BT_LOG_DEFINE_GLOBAL_OUTPUT_LEVEL macro, for example:
  *
- *   BT_LOG_DEFINE_GLOBAL_OUTPUT_LEVEL = BT_LOG_WARN;
+ *   BT_LOG_DEFINE_GLOBAL_OUTPUT_LEVEL = BT_LOG_WARNING;
  *
  * This allows to specify custom value for static initialization and avoid
  * overhead of setting this value in runtime.
@@ -553,13 +553,13 @@ static INSTRUMENTED_CONST buffer_cb g_buffer_cb = buffer_callback;
        {
                switch (lvl)
                {
-               case BT_LOG_VERBOSE:
+               case BT_LOG_TRACE:
                        return ANDROID_LOG_VERBOSE;
                case BT_LOG_DEBUG:
                        return ANDROID_LOG_DEBUG;
                case BT_LOG_INFO:
                        return ANDROID_LOG_INFO;
-               case BT_LOG_WARN:
+               case BT_LOG_WARNING:
                        return ANDROID_LOG_WARN;
                case BT_LOG_ERROR:
                        return ANDROID_LOG_ERROR;
@@ -596,13 +596,13 @@ static INSTRUMENTED_CONST buffer_cb g_buffer_cb = buffer_callback;
        {
                switch (lvl)
                {
-               case BT_LOG_VERBOSE:
+               case BT_LOG_TRACE:
                        return 7; /* ASL_LEVEL_DEBUG / kCFLogLevelDebug */;
                case BT_LOG_DEBUG:
                        return 7; /* ASL_LEVEL_DEBUG / kCFLogLevelDebug */;
                case BT_LOG_INFO:
                        return 6; /* ASL_LEVEL_INFO / kCFLogLevelInfo */;
-               case BT_LOG_WARN:
+               case BT_LOG_WARNING:
                        return 4; /* ASL_LEVEL_WARNING / kCFLogLevelWarning */;
                case BT_LOG_ERROR:
                        return 3; /* ASL_LEVEL_ERR / kCFLogLevelError */;
@@ -702,13 +702,13 @@ static char lvl_char(const int lvl)
 {
        switch (lvl)
        {
-       case BT_LOG_VERBOSE:
-               return 'V';
+       case BT_LOG_TRACE:
+               return 'T';
        case BT_LOG_DEBUG:
                return 'D';
        case BT_LOG_INFO:
                return 'I';
-       case BT_LOG_WARN:
+       case BT_LOG_WARNING:
                return 'W';
        case BT_LOG_ERROR:
                return 'E';
@@ -1277,7 +1277,7 @@ static void _bt_log_write_imp(
                color_p = bt_common_color_fg_blue();
                color_e = color_p + strlen(color_p);
                break;
-       case BT_LOG_WARN:
+       case BT_LOG_WARNING:
                color_p = bt_common_color_fg_yellow();
                color_e = color_p + strlen(color_p);
                break;
This page took 0.025152 seconds and 4 git commands to generate.