sink.text.pretty: print inactivity msg handling with BT_LOGD_STR
[babeltrace.git] / plugins / text / pretty / pretty.c
index 1b5729ab30c71081654ea90f7ce225e7fd44717c..6b6e3cd55f229f3af781d6f5f6c00a3308292cfa 100644 (file)
@@ -23,6 +23,9 @@
  * SOFTWARE.
  */
 
+#define BT_LOG_TAG "PLUGIN-TEXT-PRETTY-SINK"
+#include "logging.h"
+
 #include <babeltrace/babeltrace.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/common-internal.h>
@@ -138,8 +141,8 @@ bt_self_component_status handle_message(
                        ret = BT_SELF_COMPONENT_STATUS_ERROR;
                }
                break;
-       case BT_MESSAGE_TYPE_INACTIVITY:
-               fprintf(stderr, "Inactivity message\n");
+       case BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY:
+               BT_LOGD_STR("Message iterator inactivity message.");
                break;
        case BT_MESSAGE_TYPE_DISCARDED_EVENTS:
        case BT_MESSAGE_TYPE_DISCARDED_PACKETS:
This page took 0.024105 seconds and 4 git commands to generate.