mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
tests: correcting kernel version test
Debug force leaked in.
This commit is contained in:
parent
9f6b006272
commit
78e0fdb618
@ -571,7 +571,7 @@ struct KMsg : Source {
|
|||||||
// Can't use kmsg on kernels pre 3.5, read /var/log/messages
|
// Can't use kmsg on kernels pre 3.5, read /var/log/messages
|
||||||
if ( ( ::uname(&uts) == 0 ) &&
|
if ( ( ::uname(&uts) == 0 ) &&
|
||||||
( ::sscanf( uts.release, "%u.%u.%u", &kmaj, &kmin, &krel ) == 3 ) &&
|
( ::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";
|
can_clear = false, read_msg = "/var/log/messages";
|
||||||
|
|
||||||
if ( ( fd = open(read_msg, O_RDONLY | O_NONBLOCK)) < 0 ) {
|
if ( ( fd = open(read_msg, O_RDONLY | O_NONBLOCK)) < 0 ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user