I want to use event-log and send string to one of elements of ed struct.
but the result is not correct.

the sample code:

ELOG_TYPE_DECLARE (e) = {
                .format = "Test LOG: %s",
                .format_args = "s20",
        };
        struct
        {
            u8 * err;
        } * ed;


        vlib_worker_thread_t * w = vlib_worker_threads + cpu_index;
        ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main, e,
w->elog_track);

        ed->err = format (0,"%s", "This is a Test");


Could you please help me?


Best Regards,
Juan Salmon.
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to