Loading...
os/debug_private.c Libc-1353.100.2 Libc-1044.1.2
--- Libc/Libc-1353.100.2/os/debug_private.c
+++ Libc/Libc-1044.1.2/os/debug_private.c
@@ -254,7 +254,7 @@
 void
 _os_debug_logv(int level, const char *msg, va_list ap)
 {
-	if (os_slowpath((bool)os_debug_log_globals()->errors_only) && level > LOG_ERR) {
+	if (os_slowpath(os_debug_log_globals()->errors_only) && level > LOG_ERR) {
 		// more important = lower integer
 		return;
 	}
@@ -274,7 +274,7 @@
 	__OS_COMPILETIME_ASSERT__(pfxlen >= timelen);
 
 	if (os_fastpath(len > pfxlen)) {
-		if (os_slowpath((bool)os_debug_log_globals()->prepend_timestamp)) {
+		if (os_slowpath(os_debug_log_globals()->prepend_timestamp)) {
 			char tmp = buf[timelen];
 			snprintf(buf, timelen + 1, "%16llu", _os_debug_log_ticks_since_start());
 			buf[timelen] = tmp; // snprintf's null