Fix: notification capture: handle userspace strings
[lttng-modules.git] / src / lttng-event-notifier-notification.c
index 811dc50ad8dc93ea7230a71a8c106d9fb6316da4..054d33393f459832fac3906e81ba634cfe8c41f9 100644 (file)
@@ -283,7 +283,11 @@ int notification_append_capture(
                }
                break;
        case LTTNG_INTERPRETER_TYPE_STRING:
-               ret = lttng_msgpack_write_str(writer, output->u.str.str);
+               if (output->u.str.user) {
+                       ret = lttng_msgpack_write_user_str(writer, output->u.str.user_str);
+               } else {
+                       ret = lttng_msgpack_write_str(writer, output->u.str.str);
+               }
                if (ret) {
                        WARN_ON_ONCE(1);
                        goto end;
This page took 0.023159 seconds and 4 git commands to generate.