[Skiboot] [PATCH v2 15/23] flash: Silence some messages
Michael Neuling
mikey at neuling.org
Sun Jun 25 05:17:20 AEST 2017
From: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
core/flash.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/core/flash.c b/core/flash.c
index 793401c946..756fba1ea1 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -524,7 +524,10 @@ static int flash_load_resource(enum resource_id id, uint32_t subid,
rc = ffs_lookup_part(ffs, name, &ffs_part_num);
if (rc) {
- prerror("FLASH: No %s partition\n", name);
+ /* This is not an error per-se, some partitions
+ * are purposefully absent, don't spam the logs
+ */
+ prlog(PR_DEBUG, "FLASH: No %s partition\n", name);
goto out_free_ffs;
}
rc = ffs_part_info(ffs, ffs_part_num, NULL,
@@ -776,7 +779,8 @@ int flash_start_preload_resource(enum resource_id id, uint32_t subid,
r->len = len;
r->result = OPAL_EMPTY;
- printf("FLASH: Queueing preload of %x/%x\n", r->id, r->subid);
+ prlog(PR_DEBUG, "FLASH: Queueing preload of %x/%x\n",
+ r->id, r->subid);
lock(&flash_load_resource_lock);
if (list_empty(&flash_load_resource_queue)) {
--
2.11.0
More information about the Skiboot
mailing list