From 990d00f8b9802a5692175279072c21d28d162618 Mon Sep 17 00:00:00 2001 From: Michael Brandt Date: Wed, 9 Feb 2011 16:13:05 +0100 Subject: Fix confusing "Sub TOC entry not found" messages MCDE: Sub TOC entry not found toc_load_toc_entry: get_entry_info_toc failed mcde_display_image: no splash image found. ready The splash code searches for the SPLASH entry. If it is not found in the normal TOC, the TOC code in disk/part_toc.c tries the sub TOC entries. The sub TOC code then issues the "Sub TOC entry not found" message. It should be up to the caller to interpret it as error and to print an appropriate error message. Therefore this patch change it into a debug() message. Change-Id: Ie2f566b0f7b8f4ff6a950ec05743b573c58626e7 Signed-off-by: Michael Brandt Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14828 Reviewed-by: QATOOLS Reviewed-by: Joakim AXELSSON Reviewed-by: Markus HELGESSON --- disk/part_toc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/part_toc.c b/disk/part_toc.c index d6e0b78c1..82bb1bc95 100644 --- a/disk/part_toc.c +++ b/disk/part_toc.c @@ -98,7 +98,7 @@ static toc_entry_t *toc_get_subtoc_entry_num(block_dev_desc_t *dev_desc, */ return &subtoc->cache[num % TOC_MAX_ENTRIES]; - printf("Sub TOC entry not found\n"); + debug("toc_get_subtoc_entry_num: Sub TOC entry not found\n"); return NULL; } @@ -138,7 +138,7 @@ static toc_entry_t *toc_get_subtoc_entry_id(block_dev_desc_t *dev_desc, } } - printf("Sub TOC entry not found\n"); + debug("toc_get_subtoc_entry_id: Sub TOC entry not found\n"); return NULL; } -- cgit v1.2.3