If you're on 3.11.* or later, then you can use
-DUHD_LOG_FASTPATH_DISABLE to disable the printing of UOSDL. If you want
to know about U, S and L events, then use recv_async_msg() as you're
already doing. If you want to know about O and D events, then check the
rx_metadata from recv().

Cheers,
Martin

On 03/27/2018 04:30 AM, Cedric Roux via USRP-users wrote:
> On 03/26/2018 11:38 PM, Marcus D. Leech via USRP-users wrote:
>> On 03/26/2018 12:51 PM, Cedric Roux via USRP-users wrote:
>>> Hi,
>>>
>>> sorry I searched the web and the source and didn't find
>>> a way to kind of "redirect" the U and L messages to use
>>> my own logging facility. I have some realtime bugs and
>>> I need to take those messages to process them like the
>>> other events in my system. Is there a way to do that?
>>> uhd 3.11 (UHD_3.11.0.1-3-g8bb15ee1) here.
>>>
>>> I see that there is "add_logger", can it be used? If
>>> yes, how? The logs are generated by UHD_LOG_FASTPATH
>>> and to be honest I did not understand what happens (I
>>> don't know boost, my c++ knowledge is weak, sorry).
>>>
>>> Thanks.
>>>
>>> _______________________________________________
>>> USRP-users mailing list
>>> USRP-users@lists.ettus.com
>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>> You might spend some time with this part of the on-line manual:
>>
>> https://files.ettus.com/manual/page_logging.html
> 
> Thanks Marcus.
> I did look at this page (and others) and also the source code,
> but couldn't find a way to redirect the U and L messages.
> 
> I solved my issue by using recv_async_msg in a dedicated thread and
> that does it for the TX part (U and L).
> 
> Thank you.
> 
> _______________________________________________
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> 


_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to