]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
X.509: Convert some printk calls to pr_devel
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2012 13:21:23 +0000 (14:21 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Oct 2012 04:04:03 +0000 (14:34 +1030)
Some debugging printk() calls should've been converted to pr_devel() calls.
Do that now.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
crypto/asymmetric_keys/x509_public_key.c

index 5ab736db94a99f9237369daa8f3f8e38ac176ba7..06007f0e880c330903b5536e9d9c194da302738c 100644 (file)
@@ -118,11 +118,11 @@ static int x509_key_preparse(struct key_preparsed_payload *prep)
        pr_devel("Cert Issuer: %s\n", cert->issuer);
        pr_devel("Cert Subject: %s\n", cert->subject);
        pr_devel("Cert Key Algo: %s\n", pkey_algo[cert->pkey_algo]);
-       printk("Cert Valid From: %04ld-%02d-%02d %02d:%02d:%02d\n",
+       pr_devel("Cert Valid From: %04ld-%02d-%02d %02d:%02d:%02d\n",
                 cert->valid_from.tm_year + 1900, cert->valid_from.tm_mon + 1,
                 cert->valid_from.tm_mday, cert->valid_from.tm_hour,
                 cert->valid_from.tm_min,  cert->valid_from.tm_sec);
-       printk("Cert Valid To: %04ld-%02d-%02d %02d:%02d:%02d\n",
+       pr_devel("Cert Valid To: %04ld-%02d-%02d %02d:%02d:%02d\n",
                 cert->valid_to.tm_year + 1900, cert->valid_to.tm_mon + 1,
                 cert->valid_to.tm_mday, cert->valid_to.tm_hour,
                 cert->valid_to.tm_min,  cert->valid_to.tm_sec);
@@ -138,7 +138,7 @@ static int x509_key_preparse(struct key_preparsed_payload *prep)
        }
 
        time_to_tm(CURRENT_TIME.tv_sec, 0, &now);
-       printk("Now: %04ld-%02d-%02d %02d:%02d:%02d\n",
+       pr_devel("Now: %04ld-%02d-%02d %02d:%02d:%02d\n",
                 now.tm_year + 1900, now.tm_mon + 1, now.tm_mday,
                 now.tm_hour, now.tm_min,  now.tm_sec);
        if (now.tm_year < cert->valid_from.tm_year ||