Don't die in case of messages lacking priority in first byte
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 16 Aug 2012 11:33:29 +0000 (20:33 +0900)
committerjuho <juho80.son@samsung.com>
Wed, 24 Oct 2012 08:03:12 +0000 (17:03 +0900)
commit33c455d49195e86be4b6d820d36c1da21ec44166
treedf304ffaf7f3b65f28482ceb67e96cb483797bb8
parent0f2940bf2912a05590710be71ebc007f6128d6fb
Don't die in case of messages lacking priority in first byte

dlogutil expects first byte of message returned from kernel
to be priority selector.  This is not always the case - misbehaving
apps can write anything to /dev/log_* causing dlogutil to crash.

This commit fixes this problem and logs such messages with "[NO TAG]"
string at "error" priority.
logprint.c