Suppressing middleware messages or moving it to stderr

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suppressing middleware messages or moving it to stderr

Jump to solution
402 Views
psvz
Contributor III

Hi Kan

Middleware API litters stdout with its diag messages e.g.,

root@raspberrypi:~/se050code/mac # ./hmacit 55744873
sss   :INFO :atr (Len=35)
      01 A0 00 00    03 96 04 03    E8 00 FE 02    0B 03 E8 00
      01 00 00 00    00 64 13 88    0A 00 65 53    45 30 35 31
      00 00 00
sss   :WARN :Communication channel is Plain.
sss   :WARN :!!!Not recommended for production use.!!!
d50e19453fc6f02ba12d8ef0737e6e47da08440422317665876d07681df41464

I want to see my hex token but NOT all those sss lines. I tried this in ccmake:

CMAKE_BUILD_TYPE Release

to no avail - how do we remove middleware diagnostics from stdout, please?

Labels (1)
0 Kudos
1 Solution
370 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @psvz ,

 

You may modify the following cmake option to Silent .

Kan_Li_0-1672725977003.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
371 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @psvz ,

 

You may modify the following cmake option to Silent .

Kan_Li_0-1672725977003.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos