u-boot/common/spl
Masahiro Yamada 9b643e312d treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().

This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:

  # define __compiletime_error(message) __attribute__((error(message)))

This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux.  (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)

Let's convert error() into now treewide-available pr_err().

Done with the help of Coccinelle, excluing tools/ directory.

The semantic patch I used is as follows:

// <smpl>
@@@@
-error
+pr_err
 (...)
// </smpl>

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini <trini@konsulko.com>
2017-10-04 11:59:44 -04:00
..
Kconfig TI: ARCH_OMAP2PLUS: Enable SPL_STACK_R and provide default value 2017-09-29 14:07:51 -04:00
Makefile spl: add serial download protocol (SDP) support 2017-08-23 10:41:58 +02:00
spl.c spl: stash bootstage info before jump to next stage 2017-09-22 07:40:00 -04:00
spl_atf.c spl: add support to booting with ATF 2017-05-15 10:38:09 -04:00
spl_bootrom.c spl: add a 'return to bootrom' boot method 2017-08-13 17:12:19 +02:00
spl_dfu.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
spl_ext.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
spl_fat.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
spl_fit.c spl: Fix compiling warning on gunzip argument 2017-09-22 07:40:04 -04:00
spl_mmc.c spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector() 2017-09-29 11:23:45 +09:00
spl_nand.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_net.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
spl_nor.c spl: make image arg or fdt blob address reconfigurable 2017-05-08 11:38:40 -04:00
spl_onenand.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_ram.c spl: move RAM boot support in separate file 2017-01-14 16:46:26 -05:00
spl_sata.c dm: scsi: Document and rename the scsi_scan() parameter 2017-07-11 10:08:19 -06:00
spl_sdp.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
spl_spi.c spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-property 2017-05-11 22:03:39 -04:00
spl_ubi.c spl: Make UBI fastmap support Kconfig selectable 2017-07-06 13:09:37 -04:00
spl_usb.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_xip.c SPL: Add XIP booting support 2017-06-09 11:23:59 -04:00
spl_ymodem.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00