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_int.h | |
parent | 28fe7502c12d0bcaa6a0b0932c328759009a70f2 (diff) | |
download | kernel-crypto-50b14841594f65827b540c9f8aafa5ef59b344d0.tar.gz kernel-crypto-50b14841594f65827b540c9f8aafa5ef59b344d0.tar.xz kernel-crypto-50b14841594f65827b540c9f8aafa5ef59b344d0.zip |
Reintroduced dprintk() everywhere.
Diffstat (limited to 'cryptodev_int.h')
-rw-r--r-- | cryptodev_int.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cryptodev_int.h b/cryptodev_int.h index 3aab19cd1dd..e82a76102b3 100644 --- a/cryptodev_int.h +++ b/cryptodev_int.h @@ -1,5 +1,28 @@ /* cipher stuff */ +#ifndef CRYPTODEV_INT_H +# define CRYPTODEV_INT_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/module.h> +#include <linux/moduleparam.h> + +#define PFX "cryptodev: " +#define dprintk(level,severity,format,a...) \ + do { \ + if (level <= cryptodev_verbosity) \ + printk(severity PFX "%s[%u]: " format, \ + current->comm, current->pid, \ + ##a); \ + } while (0) + +extern int cryptodev_verbosity; + struct cipher_data { int type; /* 1 synchronous, 2 async, 0 uninitialized */ @@ -50,3 +73,4 @@ int cryptodev_hash_reset( struct hash_data* hdata); void cryptodev_hash_deinit(struct hash_data* hdata); int cryptodev_hash_init( struct hash_data* hdata, const char* alg_name, int hmac_mode, __user void* mackey, size_t mackeylen); +#endif /* CRYPTODEV_INT_H */ |