[Skiboot] [PATCH 04/16] flash: Add newlines on prints

Michael Neuling mikey at neuling.org
Fri Feb 20 11:37:47 AEDT 2015


These were added in a8513d3f3e but I forgot the \n.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 core/flash.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/core/flash.c b/core/flash.c
index b24ceaa..95ce1f0 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -368,14 +368,14 @@ static int flash_find_subpartition(struct flash_chip *chip, uint32_t subid,
 	/* Get the TOC */
 	rc = flash_read(chip, *start, header, FLASH_SUBPART_HEADER_SIZE);
 	if (rc) {
-		prerror("FLASH: flash subpartition TOC read failed %i", rc);
+		prerror("FLASH: flash subpartition TOC read failed %i\n", rc);
 		goto end;
 	}
 
 	/* Perform sanity */
 	i = be32_to_cpu(header->version);
 	if (i != 1) {
-		prerror("FLASH: flash subpartition TOC version unknown %i", i);
+		prerror("FLASH: flash subpartition TOC version unknown %i\n", i);
 		rc = OPAL_RESOURCE;
 		goto end;
 	}
@@ -394,7 +394,7 @@ static int flash_find_subpartition(struct flash_chip *chip, uint32_t subid,
 		size = be32_to_cpu(header->toc[i].size);
 		/* Check for null terminating entry */
 		if (!ec && !offset && !size) {
-			prerror("FLASH: flash subpartition not found.");
+			prerror("FLASH: flash subpartition not found.\n");
 			goto end;
 		}
 
@@ -403,16 +403,16 @@ static int flash_find_subpartition(struct flash_chip *chip, uint32_t subid,
 
 		/* Sanity check the offset and size */
 		if (offset + size > *total_size) {
-			prerror("FLASH: flash subpartition too big: %i", i);
+			prerror("FLASH: flash subpartition too big: %i\n", i);
 			goto end;
 		}
 		if (!size) {
-			prerror("FLASH: flash subpartition zero size: %i", i);
+			prerror("FLASH: flash subpartition zero size: %i\n", i);
 			goto end;
 		}
 		if (offset < FLASH_SUBPART_HEADER_SIZE) {
 			prerror("FLASH: flash subpartition "
-					"offset too small: %i", i);
+					"offset too small: %i\n", i);
 			goto end;
 		}
 
-- 
2.1.0



More information about the Skiboot mailing list