Suppressing middleware messages or moving it to stderr

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Suppressing middleware messages or moving it to stderr

跳至解决方案
949 次查看
psvz
Contributor IV

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?

标签 (1)
0 项奖励
回复
1 解答
917 次查看
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 项奖励
回复
1 回复
918 次查看
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 项奖励
回复