sloginfo

Print messages from the system log

Syntax:

sloginfo [options] [filename]

Runs on:

QNX Neutrino

Options:

-c

Clear the log buffer after displaying all waiting events.

-h

Print unformatted entries in hexadecimal. By default, they're printed in decimal.

-m code

Display events with this major code (default: display all).

-s 0..7

Display events with this severity or lower (default: 7). The lowest severity is 7 and the highest is 0.

-t

Print time for events with millisecond resolution.

-w

Wait for more events to arrive.

filename

The name of the file containing raw events (default: /dev/slog).

-w很有用,当你在调试程序时,可以设置该参数,会不停的打印slog信息。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐