diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index 1c9a1f3e8..7c5b601be 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -571,7 +571,7 @@ struct KMsg : Source { // Can't use kmsg on kernels pre 3.5, read /var/log/messages if ( ( ::uname(&uts) == 0 ) && ( ::sscanf( uts.release, "%u.%u.%u", &kmaj, &kmin, &krel ) == 3 ) && - ( ( kmaj < 5 ) || ( ( kmaj == 3 ) && ( kmin < 5 ) ) ) ) + ( ( kmaj < 3 ) || ( ( kmaj == 3 ) && ( kmin < 5 ) ) ) ) can_clear = false, read_msg = "/var/log/messages"; if ( ( fd = open(read_msg, O_RDONLY | O_NONBLOCK)) < 0 ) {