X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Flogging.h;h=ea6eadab6fe95a973cf8d2dd67794907037684e2;hb=4fa90f321f51af8f5bfc48eee1435e2f41d853b3;hp=b6b89287f1a9be13c391b05543170165f45c8128;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/logging.h b/include/babeltrace2/logging.h index b6b89287..ea6eadab 100644 --- a/include/babeltrace2/logging.h +++ b/include/babeltrace2/logging.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_LOGGING_H -#define BABELTRACE_LOGGING_H +#ifndef BABELTRACE2_LOGGING_H +#define BABELTRACE2_LOGGING_H /* * Copyright (c) 2017 Philippe Proulx @@ -23,6 +23,10 @@ * SOFTWARE. */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + #include #include #include @@ -62,7 +66,7 @@ current global log level and the minimal log level are not executed. */ typedef enum bt_logging_level { /// Additional, low-level debugging context information. - BT_LOGGING_LEVEL_VERBOSE = 1, + BT_LOGGING_LEVEL_TRACE = 1, /** Debugging information, only useful when searching for the @@ -83,7 +87,7 @@ typedef enum bt_logging_level { The library's and object's states remain consistent when a warning is issued. */ - BT_LOGGING_LEVEL_WARN = 4, + BT_LOGGING_LEVEL_WARNING = 4, /** An important error from which the library cannot recover, but @@ -146,4 +150,4 @@ extern void bt_logging_set_global_level(bt_logging_level log_level); } #endif -#endif /* BABELTRACE_LOGGING_H */ +#endif /* BABELTRACE2_LOGGING_H */