diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 23:48:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 23:48:10 +0100 |
commit | 50b14841594f65827b540c9f8aafa5ef59b344d0 (patch) | |
tree | 57fdbfccee716f85eb816193c317a8b591f4efb1 /cryptodev_main.c | |
parent | 28fe7502c12d0bcaa6a0b0932c328759009a70f2 (diff) | |
download | cryptodev-linux-50b14841594f65827b540c9f8aafa5ef59b344d0.tar.gz cryptodev-linux-50b14841594f65827b540c9f8aafa5ef59b344d0.tar.xz cryptodev-linux-50b14841594f65827b540c9f8aafa5ef59b344d0.zip |
Reintroduced dprintk() everywhere.
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r-- | cryptodev_main.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c index bdf7017..0162486 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -31,14 +31,6 @@ * */ -#include <linux/module.h> -#include <linux/moduleparam.h> -#include <linux/init.h> -#include <linux/sched.h> -#include <linux/fs.h> -#include <linux/file.h> -#include <linux/fdtable.h> -#include <linux/miscdevice.h> #include <linux/crypto.h> #include <linux/mm.h> #include <linux/highmem.h> @@ -59,9 +51,9 @@ MODULE_LICENSE("GPL"); /* ====== Module parameters ====== */ -static int verbosity = 0; -module_param(verbosity, int, 0644); -MODULE_PARM_DESC(verbosity, "0: normal, 1: verbose, 2: debug"); +int cryptodev_verbosity = 0; +module_param(cryptodev_verbosity, int, 0644); +MODULE_PARM_DESC(cryptodev_verbosity, "0: normal, 1: verbose, 2: debug"); #ifdef CRYPTODEV_STATS static int enable_stats = 0; @@ -69,17 +61,6 @@ module_param(enable_stats, int, 0644); MODULE_PARM_DESC(enable_stats, "collect statictics about cryptodev usage"); #endif -/* ====== Debug helpers ====== */ - -#define PFX "cryptodev: " -#define dprintk(level,severity,format,a...) \ - do { \ - if (level <= verbosity) \ - printk(severity PFX "%s[%u]: " format, \ - current->comm, current->pid, \ - ##a); \ - } while (0) - /* ====== CryptoAPI ====== */ #define FILL_SG(sg,ptr,len) \ |