mirror of
https://github.com/openharmony/hiviewdfx_hilog_lite.git
synced 2026-07-01 06:41:57 -04:00
change compasion for ret
Signed-off-by: buzhenwang <buzhenwang@huawei.com>
This commit is contained in:
@@ -189,7 +189,7 @@ int main(int argc, char *argv[])
|
||||
while (1) {
|
||||
(void)memset_s(buf, HILOG_LOGBUFFER + 1, 0, HILOG_LOGBUFFER + 1);
|
||||
ret = read(fd, buf, HILOG_LOGBUFFER);
|
||||
if (ret < 0 || ret < sizeof(struct HiLogEntry)) {
|
||||
if (ret < (int)(sizeof(struct HiLogEntry))) {
|
||||
continue;
|
||||
}
|
||||
struct HiLogEntry *head = (struct HiLogEntry *)buf;
|
||||
|
||||
Reference in New Issue
Block a user