X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=fs%2Fcifs%2Fcifs_debug.h;h=3d55d720509d8beb3b9cc5b8952667aba5e9be8c;hp=8942b28cf807d5aba71fc0066c1f129606e11910;hb=4ed805d143fbc9d5f2026405d7090301fad67066;hpb=e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7 diff --git a/fs/cifs/cifs_debug.h b/fs/cifs/cifs_debug.h index 8942b28cf807..3d55d720509d 100644 --- a/fs/cifs/cifs_debug.h +++ b/fs/cifs/cifs_debug.h @@ -23,6 +23,8 @@ #ifndef _H_CIFS_DEBUG #define _H_CIFS_DEBUG +#include + void cifs_dump_mem(char *label, void *data, int length); #ifdef CONFIG_CIFS_DEBUG2 #define DBG2 2 @@ -48,7 +50,7 @@ extern int cifsFYI; #define cifsfyi(fmt, arg...) \ do { \ if (cifsFYI & CIFS_INFO) \ - printk(KERN_DEBUG "%s: " fmt "\n", __FILE__, ##arg); \ + pr_debug_ratelimited("%s: " fmt "\n", __FILE__, ##arg); \ } while (0) #define cFYI(set, fmt, arg...) \ @@ -58,7 +60,7 @@ do { \ } while (0) #define cifswarn(fmt, arg...) \ - printk(KERN_WARNING fmt "\n", ##arg) + pr_warn_ratelimited(fmt "\n", ##arg) /* debug event message: */ extern int cifsERROR; @@ -73,7 +75,7 @@ do { \ #define cifserror(fmt, arg...) \ do { \ if (cifsERROR) \ - printk(KERN_ERR "CIFS VFS: " fmt "\n", ##arg); \ + pr_err_ratelimited("CIFS VFS: " fmt "\n", ##arg); \ } while (0) #define cERROR(set, fmt, arg...) \