]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace ERROR() macro with inline function. In-tree gcc cannot tolerate
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 12 Feb 2011 12:46:00 +0000 (12:46 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 12 Feb 2011 12:46:00 +0000 (12:46 +0000)
commit49e51fb02ca0e1b771c7cad859620fce89e4c4c4
tree1f4a6dfe93b8c208a51d4e5ac609046e0248ac43
parenta7c797f063af407a2a87163d39e8b84788bd91a1
Replace ERROR() macro with inline function. In-tree gcc cannot tolerate
the construct like printf("%\s", NULL) resulting from macroexpand of
ERROR(u, NULL), making it impossible to use LIBUFS_DEBUGGING.

With inline function, compiler cannot detect the NULL argument to
known function and does not try to convert it into puts().

In collaboration with: pho
lib/libufs/libufs.h