Skip to content

Commit

Permalink
flash: Silence some messages
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Jun 26, 2017
1 parent 48ab052 commit 42a615b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/flash.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 42a615b

Please sign in to comment.