]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
rdrand: Move RDRAND detection log to level 2
authorMartin Willi <martin@revosec.ch>
Mon, 10 Feb 2014 10:07:50 +0000 (11:07 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 10 Feb 2014 10:07:50 +0000 (11:07 +0100)
When having RDRAND support, these log messages might be confusing when using
pki or other tools.

src/libstrongswan/plugins/rdrand/rdrand_plugin.c

index 4bdfc258e3858c2048ac4907b02c7ab12dc785f0..bb540648d733eac0e7ceaf442edcd3403bc77734 100644 (file)
@@ -77,11 +77,11 @@ static bool have_rdrand()
                cpuid(1, &a, &b, &c, &d);
                if (c & CPUID_RDRAND)
                {
-                       DBG1(DBG_LIB, "detected RDRAND support on %s CPU", vendor);
+                       DBG2(DBG_LIB, "detected RDRAND support on %s CPU", vendor);
                        return TRUE;
                }
        }
-       DBG1(DBG_LIB, "no RDRAND support on %s CPU, disabled", vendor);
+       DBG2(DBG_LIB, "no RDRAND support on %s CPU, disabled", vendor);
        return FALSE;
 }