u-boot/fs/yaffs2
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 Convert CONFIG_CMD_YAFFS2 to Kconfig 2017-08-11 17:44:50 -04:00
Makefile
yaffs_allocator.c
yaffs_allocator.h
yaffs_attribs.c
yaffs_attribs.h
yaffs_bitmap.c
yaffs_bitmap.h
yaffs_checkptrw.c
yaffs_checkptrw.h
yaffs_ecc.c
yaffs_ecc.h
yaffs_error.c
yaffs_flashif2.h
yaffs_flashif.h
yaffs_getblockinfo.h
yaffs_guts.c
yaffs_guts.h
yaffs_mtdif2.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
yaffs_mtdif2.h
yaffs_mtdif.c treewide: use #include <...> to include public headers 2016-09-23 17:53:56 -04:00
yaffs_mtdif.h
yaffs_nameval.c
yaffs_nameval.h
yaffs_nand.c
yaffs_nand.h
yaffs_nandemul2k.h
yaffs_nandif.c
yaffs_nandif.h
yaffs_osglue.h
yaffs_packedtags1.c
yaffs_packedtags1.h
yaffs_packedtags2.c
yaffs_packedtags2.h
yaffs_qsort.c
yaffs_summary.c
yaffs_summary.h
yaffs_tagscompat.c
yaffs_tagscompat.h
yaffs_trace.h
yaffs_uboot_glue.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
yaffs_verify.c
yaffs_verify.h
yaffs_yaffs1.c
yaffs_yaffs1.h
yaffs_yaffs2.c
yaffs_yaffs2.h
yaffscfg.h
yaffsfs.c yaffs2: remove redundant condition 2017-04-18 10:29:22 -04:00
yaffsfs.h
ydirectenv.h treewide: use #include <...> to include public headers 2016-09-23 17:53:56 -04:00
yportenv.h