diff options
author | David Howells <dhowells@redhat.com> | 2012-10-04 09:21:23 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-10 05:36:38 -0400 |
commit | 2f1c4fef103ef914e266588af263fb42b502b347 (patch) | |
tree | 10c1b8f4b41b436e2f9f62da90385d61807f34d4 /crypto | |
parent | cf75446e69305307225e12f2eb2e856db268195e (diff) |
X.509: Convert some printk calls to pr_devel
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asymmetric_keys/x509_public_key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c index 5ab736db94a9..06007f0e880c 100644 --- a/crypto/asymmetric_keys/x509_public_key.c +++ b/crypto/asymmetric_keys/x509_public_key.c | |||
@@ -118,11 +118,11 @@ static int x509_key_preparse(struct key_preparsed_payload *prep) | |||
118 | pr_devel("Cert Issuer: %s\n", cert->issuer); | 118 | pr_devel("Cert Issuer: %s\n", cert->issuer); |
119 | pr_devel("Cert Subject: %s\n", cert->subject); | 119 | pr_devel("Cert Subject: %s\n", cert->subject); |
120 | pr_devel("Cert Key Algo: %s\n", pkey_algo[cert->pkey_algo]); | 120 | pr_devel("Cert Key Algo: %s\n", pkey_algo[cert->pkey_algo]); |
121 | printk("Cert Valid From: %04ld-%02d-%02d %02d:%02d:%02d\n", | 121 | pr_devel("Cert Valid From: %04ld-%02d-%02d %02d:%02d:%02d\n", |
122 | cert->valid_from.tm_year + 1900, cert->valid_from.tm_mon + 1, | 122 | cert->valid_from.tm_year + 1900, cert->valid_from.tm_mon + 1, |
123 | cert->valid_from.tm_mday, cert->valid_from.tm_hour, | 123 | cert->valid_from.tm_mday, cert->valid_from.tm_hour, |
124 | cert->valid_from.tm_min, cert->valid_from.tm_sec); | 124 | cert->valid_from.tm_min, cert->valid_from.tm_sec); |
125 | printk("Cert Valid To: %04ld-%02d-%02d %02d:%02d:%02d\n", | 125 | pr_devel("Cert Valid To: %04ld-%02d-%02d %02d:%02d:%02d\n", |
126 | cert->valid_to.tm_year + 1900, cert->valid_to.tm_mon + 1, | 126 | cert->valid_to.tm_year + 1900, cert->valid_to.tm_mon + 1, |
127 | cert->valid_to.tm_mday, cert->valid_to.tm_hour, | 127 | cert->valid_to.tm_mday, cert->valid_to.tm_hour, |
128 | cert->valid_to.tm_min, cert->valid_to.tm_sec); | 128 | cert->valid_to.tm_min, cert->valid_to.tm_sec); |
@@ -138,7 +138,7 @@ static int x509_key_preparse(struct key_preparsed_payload *prep) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | time_to_tm(CURRENT_TIME.tv_sec, 0, &now); | 140 | time_to_tm(CURRENT_TIME.tv_sec, 0, &now); |
141 | printk("Now: %04ld-%02d-%02d %02d:%02d:%02d\n", | 141 | pr_devel("Now: %04ld-%02d-%02d %02d:%02d:%02d\n", |
142 | now.tm_year + 1900, now.tm_mon + 1, now.tm_mday, | 142 | now.tm_year + 1900, now.tm_mon + 1, now.tm_mday, |
143 | now.tm_hour, now.tm_min, now.tm_sec); | 143 | now.tm_hour, now.tm_min, now.tm_sec); |
144 | if (now.tm_year < cert->valid_from.tm_year || | 144 | if (now.tm_year < cert->valid_from.tm_year || |