[PATCH] splash: Print error message when no renderer is found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the splash command silently fails when no renderer is found for
an image type. Print an error message in this case.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 lib/gui/image_renderer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/gui/image_renderer.c b/lib/gui/image_renderer.c
index 78e5777..9c92983 100644
--- a/lib/gui/image_renderer.c
+++ b/lib/gui/image_renderer.c
@@ -23,6 +23,8 @@ static struct image_renderer *get_renderer(void* buf, size_t bufsize)
 			return ir;
 	}
 
+	printf("No renderer found for filetype %s\n", file_type_to_string(type));
+
 	return NULL;
 }
 
-- 
1.9.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux