From: Tina Johnson Date: Mon, 2 Mar 2015 18:10:25 +0000 (+0530) Subject: staging: lustre: lustre: libcfs: Replaced printk() with pr_err() X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~653 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b7a9de00bde29e3c815474f51bfdf0fbcde9d7;p=pandora-kernel.git staging: lustre: lustre: libcfs: Replaced printk() with pr_err() The following checkpatch warning was fixed: Prefer [subsystem eg: netdev]_err([subsystem]dev with the help of Coccinelle. The following semantic patch was used: @a@ expression e; @@ printk(e,...); @script:python b@ e << a.e; y; @@ import re match = re.match('KERN_ERR ', e); if (match == None): cocci.include_match(False) else: m = re.sub('KERN_ERR ', '', e) coccinelle.y = m; @c@ expression a.e; identifier b.y; @@ - printk(e, + pr_err(y, ...); Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed