Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - use pr_fmt() in adf_gen4_hw_data.c

Add pr_fmt() to adf_gen4_hw_data.c logging and update the debug and error
messages to utilize it accordingly.

This does not introduce any functional changes.

Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Suman Kumar Chakraborty and committed by
Herbert Xu
7ea5ea3e 590f8a67

+6 -4
+6 -4
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c
··· 1 1 // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) 2 2 /* Copyright(c) 2020 Intel Corporation */ 3 + 4 + #define pr_fmt(fmt) "QAT: " fmt 5 + 3 6 #include <linux/bitops.h> 4 7 #include <linux/iopoll.h> 5 8 #include <asm/div64.h> ··· 526 523 u32 __expect_val = (expect_val); \ 527 524 u32 actual_val = op(args); \ 528 525 (__expect_val == actual_val) ? 0 : \ 529 - (pr_err("QAT: Fail to restore %s register. Expected 0x%x, actual 0x%x\n", \ 526 + (pr_err("Fail to restore %s register. Expected 0x%x, actual 0x%x\n", \ 530 527 name, __expect_val, actual_val), -EINVAL); \ 531 528 }) 532 529 ··· 596 593 */ 597 594 val = state->ringexpstat; 598 595 if (val) { 599 - pr_info("QAT: Bank %u state not fully restored due to exception in saved state (%#x)\n", 596 + pr_info("Bank %u state not fully restored due to exception in saved state (%#x)\n", 600 597 bank, val); 601 598 return 0; 602 599 } ··· 604 601 /* Ensure that the restoration process completed without exceptions */ 605 602 tmp_val = ops->read_csr_exp_stat(base, bank); 606 603 if (tmp_val) { 607 - pr_err("QAT: Bank %u restored with exception: %#x\n", 608 - bank, tmp_val); 604 + pr_err("Bank %u restored with exception: %#x\n", bank, tmp_val); 609 605 return -EFAULT; 610 606 } 611 607