util/cbfstool: Wrap logging macros in do - while

Wrap the console logging macros with do { ... } while (0) so they act
more like functions.

Add missing semicolons to calls of these macros.

TEST=compile only

Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Change-Id: I721a4a93636201fa2394ec62cbe4e743cd3ad9d0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68336
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Fred Reitberger
2022-10-12 10:47:39 -04:00
committed by Felix Held
parent a261502de5
commit 9049dfdb68
3 changed files with 9 additions and 9 deletions

View File

@@ -399,7 +399,7 @@ int cbfs_copy_instance(struct cbfs_image *image, struct buffer *dst)
cbfs_calculate_file_header_size("") - sizeof(int32_t);
if (last_entry_size < 0)
WARN("No room to create the last entry!\n")
WARN("No room to create the last entry!\n");
else
cbfs_create_empty_entry(dst_entry, CBFS_TYPE_NULL,
last_entry_size, "");