flt.lttng-utils.debug-info: forward unhandled notifications
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 20 Jun 2017 21:07:55 +0000 (17:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 20:16:11 +0000 (16:16 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/lttng-utils/plugin.c

index d27f6728385f444468ea4e6780cb172e50c7c1a6..9f2d9c5e6cb8b323e71f12d7093c84f5c6fa7dde 100644 (file)
@@ -222,14 +222,10 @@ struct bt_notification *handle_notification(FILE *err,
                bt_put(writer_stream);
                break;
        }
                bt_put(writer_stream);
                break;
        }
-       case BT_NOTIFICATION_TYPE_INACTIVITY:
-       {
+       default:
                new_notification = bt_get(notification);
                break;
        }
                new_notification = bt_get(notification);
                break;
        }
-       default:
-               puts("Unhandled notification type");
-       }
 
 end:
        return new_notification;
 
 end:
        return new_notification;
@@ -295,14 +291,6 @@ enum bt_notification_iterator_status debug_info_iterator_init(
                bt_private_notification_iterator_get_private_component(iterator);
        struct debug_info_iterator *it_data = g_new0(struct debug_info_iterator, 1);
        struct bt_private_port *input_port;
                bt_private_notification_iterator_get_private_component(iterator);
        struct debug_info_iterator *it_data = g_new0(struct debug_info_iterator, 1);
        struct bt_private_port *input_port;
-       static const enum bt_notification_type notif_types[] = {
-               BT_NOTIFICATION_TYPE_EVENT,
-               BT_NOTIFICATION_TYPE_STREAM_BEGIN,
-               BT_NOTIFICATION_TYPE_STREAM_END,
-               BT_NOTIFICATION_TYPE_PACKET_BEGIN,
-               BT_NOTIFICATION_TYPE_PACKET_END,
-               BT_NOTIFICATION_TYPE_SENTINEL,
-       };
 
        if (!it_data) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_NOMEM;
 
        if (!it_data) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_NOMEM;
@@ -324,7 +312,7 @@ enum bt_notification_iterator_status debug_info_iterator_init(
        }
 
        conn_status = bt_private_connection_create_notification_iterator(
        }
 
        conn_status = bt_private_connection_create_notification_iterator(
-                       connection, notif_types, &it_data->input_iterator);
+                       connection, NULL, &it_data->input_iterator);
        if (conn_status != BT_CONNECTION_STATUS_OK) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
                goto end;
        if (conn_status != BT_CONNECTION_STATUS_OK) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
                goto end;
This page took 0.03149 seconds and 4 git commands to generate.