Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2890c6b8 authored by Prerna Kalla's avatar Prerna Kalla
Browse files

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: default avatarPrerna Kalla <prernak@codeaurora.org>
parent e117350b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;