diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-06-11 07:27:52 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-07-12 20:10:54 -0400 |
commit | de369538436ae0caf784c69187ad0e53152b7ddf (patch) | |
tree | 266fef73ade51dd0500e320129bde3e40adea581 /drivers/misc/cxl/native.c | |
parent | 80c394fab89649585089f5bd5013f2d99e5756ef (diff) |
cxl: use more common format specifier
A precision of 16 (%.16llx) has the same effect as a field width of 16
along with passing the 0 flag (%016llx), but the latter is much more
common in the kernel tree. Update cxl to use that.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/native.c')
-rw-r--r-- | drivers/misc/cxl/native.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index 10567f245818..fc9310dd2367 100644 --- a/drivers/misc/cxl/native.c +++ b/drivers/misc/cxl/native.c | |||
@@ -41,7 +41,7 @@ static int afu_control(struct cxl_afu *afu, u64 command, | |||
41 | rc = -EBUSY; | 41 | rc = -EBUSY; |
42 | goto out; | 42 | goto out; |
43 | } | 43 | } |
44 | pr_devel_ratelimited("AFU control... (0x%.16llx)\n", | 44 | pr_devel_ratelimited("AFU control... (0x%016llx)\n", |
45 | AFU_Cntl | command); | 45 | AFU_Cntl | command); |
46 | cpu_relax(); | 46 | cpu_relax(); |
47 | AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); | 47 | AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); |
@@ -120,13 +120,13 @@ int cxl_psl_purge(struct cxl_afu *afu) | |||
120 | goto out; | 120 | goto out; |
121 | } | 121 | } |
122 | dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); | 122 | dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); |
123 | pr_devel_ratelimited("PSL purging... PSL_CNTL: 0x%.16llx PSL_DSISR: 0x%.16llx\n", PSL_CNTL, dsisr); | 123 | pr_devel_ratelimited("PSL purging... PSL_CNTL: 0x%016llx PSL_DSISR: 0x%016llx\n", PSL_CNTL, dsisr); |
124 | if (dsisr & CXL_PSL_DSISR_TRANS) { | 124 | if (dsisr & CXL_PSL_DSISR_TRANS) { |
125 | dar = cxl_p2n_read(afu, CXL_PSL_DAR_An); | 125 | dar = cxl_p2n_read(afu, CXL_PSL_DAR_An); |
126 | dev_notice(&afu->dev, "PSL purge terminating pending translation, DSISR: 0x%.16llx, DAR: 0x%.16llx\n", dsisr, dar); | 126 | dev_notice(&afu->dev, "PSL purge terminating pending translation, DSISR: 0x%016llx, DAR: 0x%016llx\n", dsisr, dar); |
127 | cxl_p2n_write(afu, CXL_PSL_TFC_An, CXL_PSL_TFC_An_AE); | 127 | cxl_p2n_write(afu, CXL_PSL_TFC_An, CXL_PSL_TFC_An_AE); |
128 | } else if (dsisr) { | 128 | } else if (dsisr) { |
129 | dev_notice(&afu->dev, "PSL purge acknowledging pending non-translation fault, DSISR: 0x%.16llx\n", dsisr); | 129 | dev_notice(&afu->dev, "PSL purge acknowledging pending non-translation fault, DSISR: 0x%016llx\n", dsisr); |
130 | cxl_p2n_write(afu, CXL_PSL_TFC_An, CXL_PSL_TFC_An_A); | 130 | cxl_p2n_write(afu, CXL_PSL_TFC_An, CXL_PSL_TFC_An_A); |
131 | } else { | 131 | } else { |
132 | cpu_relax(); | 132 | cpu_relax(); |
@@ -684,7 +684,7 @@ static void recover_psl_err(struct cxl_afu *afu, u64 errstat) | |||
684 | { | 684 | { |
685 | u64 dsisr; | 685 | u64 dsisr; |
686 | 686 | ||
687 | pr_devel("RECOVERING FROM PSL ERROR... (0x%.16llx)\n", errstat); | 687 | pr_devel("RECOVERING FROM PSL ERROR... (0x%016llx)\n", errstat); |
688 | 688 | ||
689 | /* Clear PSL_DSISR[PE] */ | 689 | /* Clear PSL_DSISR[PE] */ |
690 | dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); | 690 | dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); |