diff options
Diffstat (limited to 'include/log')
-rw-r--r-- | include/log/log_read.h | 13 | ||||
-rw-r--r-- | include/log/logger.h | 5 |
2 files changed, 10 insertions, 8 deletions
diff --git a/include/log/log_read.h b/include/log/log_read.h index 54d71a4..946711a 100644 --- a/include/log/log_read.h +++ b/include/log/log_read.h @@ -67,7 +67,8 @@ public: // timespec bool operator== (const timespec &T) const { - return (tv_sec == T.tv_sec) && (tv_nsec == T.tv_nsec); + return (tv_sec == static_cast<uint32_t>(T.tv_sec)) + && (tv_nsec == static_cast<uint32_t>(T.tv_nsec)); } bool operator!= (const timespec &T) const { @@ -75,8 +76,9 @@ public: } bool operator< (const timespec &T) const { - return (tv_sec < T.tv_sec) - || ((tv_sec == T.tv_sec) && (tv_nsec < T.tv_nsec)); + return (tv_sec < static_cast<uint32_t>(T.tv_sec)) + || ((tv_sec == static_cast<uint32_t>(T.tv_sec)) + && (tv_nsec < static_cast<uint32_t>(T.tv_nsec))); } bool operator>= (const timespec &T) const { @@ -84,8 +86,9 @@ public: } bool operator> (const timespec &T) const { - return (tv_sec > T.tv_sec) - || ((tv_sec == T.tv_sec) && (tv_nsec > T.tv_nsec)); + return (tv_sec > static_cast<uint32_t>(T.tv_sec)) + || ((tv_sec == static_cast<uint32_t>(T.tv_sec)) + && (tv_nsec > static_cast<uint32_t>(T.tv_nsec))); } bool operator<= (const timespec &T) const { diff --git a/include/log/logger.h b/include/log/logger.h index ed39c4f..53be1d3 100644 --- a/include/log/logger.h +++ b/include/log/logger.h @@ -62,9 +62,8 @@ struct logger_entry_v3 { /* * The maximum size of the log entry payload that can be - * written to the kernel logger driver. An attempt to write - * more than this amount to /dev/log/* will result in a - * truncated log entry. + * written to the logger. An attempt to write more than + * this amount will result in a truncated log entry. */ #define LOGGER_ENTRY_MAX_PAYLOAD 4076 |