summaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctresource.c
diff options
context:
space:
mode:
authorSudip Mukherjee2014-08-26 15:31:42 +0200
committerTakashi Iwai2014-08-26 15:40:54 +0200
commite720b82027b99482ea5d1001a69bdf2200e86b79 (patch)
treef5550b5e8ec2309aec6b4ed9ede6fc949b3edfc9 /sound/pci/ctxfi/ctresource.c
parentALSA: ctxfi: ctpcm.c: printk replacement (diff)
downloadkernel-qcow2-linux-e720b82027b99482ea5d1001a69bdf2200e86b79.tar.gz
kernel-qcow2-linux-e720b82027b99482ea5d1001a69bdf2200e86b79.tar.xz
kernel-qcow2-linux-e720b82027b99482ea5d1001a69bdf2200e86b79.zip
ALSA: ctxfi: prink replacement
as pr_* macros are more preffered over printk, so printk replaced with corresponding pr_err and pr_alert this patch will generate a warning from checkpatch for an unnecessary space before new line and has not been fixed as this patch is only for printk replacement. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctresource.c')
-rw-r--r--sound/pci/ctxfi/ctresource.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
index 7dfaf67344d4..11ac934dcefd 100644
--- a/sound/pci/ctxfi/ctresource.c
+++ b/sound/pci/ctxfi/ctresource.c
@@ -162,13 +162,13 @@ int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
case DAIO:
break;
default:
- printk(KERN_ERR
+ pr_err(
"ctxfi: Invalid resource type value %d!\n", type);
return -EINVAL;
}
if (err) {
- printk(KERN_ERR
+ pr_err(
"ctxfi: Failed to get resource control block!\n");
return err;
}
@@ -192,7 +192,7 @@ int rsc_uninit(struct rsc *rsc)
case DAIO:
break;
default:
- printk(KERN_ERR "ctxfi: "
+ pr_err("ctxfi: "
"Invalid resource type value %d!\n", rsc->type);
break;
}
@@ -235,14 +235,14 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
case SUM:
break;
default:
- printk(KERN_ERR
+ pr_err(
"ctxfi: Invalid resource type value %d!\n", type);
err = -EINVAL;
goto error;
}
if (err) {
- printk(KERN_ERR
+ pr_err(
"ctxfi: Failed to get manager control block!\n");
goto error;
}
@@ -286,7 +286,7 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
case SUM:
break;
default:
- printk(KERN_ERR "ctxfi: "
+ pr_err("ctxfi: "
"Invalid resource type value %d!\n", mgr->type);
break;
}