Sherry Sun
90335d6681
EDAC/synopsys: Do not print an error with back-to-back snprintf() calls
...
commit dfc6014e3b60713f375d0601d7549eed224c4615 upstream.
handle_error() currently calls snprintf() a couple of times in
succession to output the message for a CE/UE, therefore overwriting each
part of the message which was formatted with the previous snprintf()
call. As a result, only the part of the message from the last snprintf()
call will be printed.
The simplest and most effective way to fix this problem is to combine
the whole string into one which to supply to a single snprintf() call.
[ bp: Massage. ]
Fixes: b500b4a029 ("EDAC, synopsys: Add ECC support for ZynqMP DDR controller")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: James Morse <james.morse@arm.com>
Cc: Manish Narani <manish.narani@xilinx.com>
Link: https://lkml.kernel.org/r/1582792452-32575-1-git-send-email-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:31 +01:00
..
altera_edac.c
EDAC/altera: Use fast register IO for S10 IRQs
2019-12-17 19:55:51 +01:00
altera_edac.h
edac: altera: Move Stratix10 SDRAM ECC to peripheral
2019-07-25 14:28:42 -04:00
amd64_edac.c
EDAC/amd64: Set grain per DIMM
2019-12-31 16:44:20 +01:00
amd64_edac.h
EDAC/amd64: Add PCI device IDs for family 17h, model 70h
2019-09-07 07:29:27 +02:00
amd64_edac_dbg.c
amd64_edac_inj.c
amd76x_edac.c
amd8111_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
amd8111_edac.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
amd8131_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
amd8131_edac.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
armada_xp_edac.c
ARM: 8891/1: EDAC: armada_xp: Add support for more SoCs
2019-08-29 07:58:01 +01:00
aspeed_edac.c
EDAC/aspeed: Remove set but not used variable 'np'
2019-06-20 11:44:36 -07:00
bluefield_edac.c
EDAC, mellanox: Add ECC support for BlueField DDR4
2019-08-08 12:57:01 -03:00
cell_edac.c
cpc925_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
debugfs.c
ARM: 8892/1: EDAC: Add missing debugfs_create_x32 wrapper
2019-08-29 07:58:01 +01:00
e7xxx_edac.c
e752x_edac.c
edac_device.c
edac_device.h
edac_device_sysfs.c
edac_mc.c
EDAC/mc: Fix use-after-free and memleaks during device removal
2020-02-19 19:53:03 +01:00
edac_mc.h
EDAC: Prefer 'unsigned int' to bare use of 'unsigned'
2019-09-03 19:21:19 +02:00
edac_mc_sysfs.c
EDAC/mc: Fix use-after-free and memleaks during device removal
2020-02-19 19:53:03 +01:00
edac_module.c
edac_module.h
ARM: 8892/1: EDAC: Add missing debugfs_create_x32 wrapper
2019-08-29 07:58:01 +01:00
edac_pci.c
edac_pci.h
edac_pci_sysfs.c
fsl_ddr_edac.c
fsl_ddr_edac.h
ghes_edac.c
EDAC/ghes: Fix grain calculation
2019-12-31 16:45:16 +01:00
highbank_l2_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201
2019-05-30 11:29:52 -07:00
highbank_mc_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201
2019-05-30 11:29:52 -07:00
i7core_edac.c
i10nm_base.c
x86/intel: Aggregate microserver naming
2019-08-28 11:29:32 +02:00
i3000_edac.c
i3200_edac.c
i5000_edac.c
i5100_edac.c
EDAC: Prefer 'unsigned int' to bare use of 'unsigned'
2019-09-03 19:21:19 +02:00
i5400_edac.c
i7300_edac.c
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
ie31200_edac.c
EDAC/ie31200: Reformat PCI device table
2019-06-20 11:44:36 -07:00
Kconfig
ARM updates for 5.4-rc1:
2019-09-22 09:39:09 -07:00
layerscape_edac.c
Makefile
ARM updates for 5.4-rc1:
2019-09-22 09:39:09 -07:00
mce_amd.c
mce_amd.h
mpc85xx_edac.c
mpc85xx_edac.h
mv64x60_edac.c
mv64x60_edac.h
octeon_edac-l2c.c
octeon_edac-lmc.c
octeon_edac-pc.c
octeon_edac-pci.c
pasemi_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
2019-06-05 17:37:06 +02:00
pnd2_edac.c
Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2019-09-16 18:47:53 -07:00
pnd2_edac.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288
2019-06-05 17:36:37 +02:00
ppc4xx_edac.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
2019-06-05 17:37:17 +02:00
ppc4xx_edac.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
2019-06-05 17:37:17 +02:00
qcom_edac.c
r82600_edac.c
sb_edac.c
x86/intel: Aggregate microserver naming
2019-08-28 11:29:32 +02:00
sifive_edac.c
EDAC/sifive: Fix return value check in ecc_register()
2020-02-24 08:36:51 +01:00
skx_base.c
EDAC, skx, i10nm: Fix source ID register offset
2019-06-26 10:07:27 -07:00
skx_common.c
EDAC: skx_common: downgrade message importance on missing PCI device
2020-03-05 16:43:31 +01:00
skx_common.h
EDAC, skx, i10nm: Fix source ID register offset
2019-06-26 10:07:27 -07:00
synopsys_edac.c
EDAC/synopsys: Do not print an error with back-to-back snprintf() calls
2020-03-12 13:00:31 +01:00
thunderx_edac.c
ti_edac.c
wq.c
x38_edac.c
xgene_edac.c