From 4d42fdf1951daca6128bdfa9330765ee6e7a1d08 Mon Sep 17 00:00:00 2001 From: jianglianfang Date: Tue, 9 Jan 2024 14:35:22 +0800 Subject: [PATCH] video/fb: changed circbuf_write assert to warning Signed-off-by: jianglianfang --- drivers/video/fb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/video/fb.c b/drivers/video/fb.c index e7528a550b..f2a8223126 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -206,7 +206,10 @@ static int fb_add_paninfo(FAR struct fb_chardev_s *fb, /* Write planeinfo information to the queue. */ ret = circbuf_write(panbuf, info, sizeof(union fb_paninfo_u)); - DEBUGASSERT(ret == sizeof(union fb_paninfo_u)); + if (ret != sizeof(union fb_paninfo_u)) + { + gwarn("WARNING: circbuf_write(panbuf) failed\n"); + } /* Re-enable interrupts */