diff --git a/services/hilogd/log_buffer.cpp b/services/hilogd/log_buffer.cpp index c3bb3388cb0905358ae73bd8b86382c21fed35ab..90199d86774941d2580f7341c44703fa0edcc96c 100644 --- a/services/hilogd/log_buffer.cpp +++ b/services/hilogd/log_buffer.cpp @@ -238,7 +238,7 @@ std::optional HilogBuffer::Query(const LogFilter& filter, const Reade int32_t HilogBuffer::Delete(uint16_t logType) { - std::list &msgList = (logType == (0b01 << LOG_KMSG)) ? hilogKlogList : hilogDataList; + std::list &msgList = (logType == LOG_KMSG) ? hilogKlogList : hilogDataList; if (logType >= LOG_TYPE_MAX) { return ERR_LOG_TYPE_INVALID; }