crypto: msm: Replace pr_err with pr_debug in _qcrypto_debug_init

pr_err is replaced with pr_debug to avoid any error statement
in kernel logs when debugfs is disabled on production builds.

Change-Id: Ic2371bb9d62d2a281808cc34d79170aabc496627
Signed-off-by: Prerna Kalla <prernak@codeaurora.org>
This commit is contained in:
Prerna Kalla
2020-05-12 17:14:54 +05:30
parent e117350bee
commit 2890c6b873

View File

@@ -5523,7 +5523,7 @@ static int _qcrypto_debug_init(void)
_debug_dent = debugfs_create_dir("qcrypto", NULL);
if (IS_ERR(_debug_dent)) {
pr_err("qcrypto debugfs_create_dir fail, error %ld\n",
pr_debug("qcrypto debugfs_create_dir fail, error %ld\n",
PTR_ERR(_debug_dent));
return PTR_ERR(_debug_dent);
}
@@ -5533,7 +5533,7 @@ static int _qcrypto_debug_init(void)
dent = debugfs_create_file(name, 0644, _debug_dent,
&_debug_qcrypto, &_debug_stats_ops);
if (dent == NULL) {
pr_err("qcrypto debugfs_create_file fail, error %ld\n",
pr_debug("qcrypto debugfs_create_file fail, error %ld\n",
PTR_ERR(dent));
rc = PTR_ERR(dent);
goto err;