This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 4d42fdf195 video/fb: changed circbuf_write assert to warning
4d42fdf195 is described below
commit 4d42fdf1951daca6128bdfa9330765ee6e7a1d08
Author: jianglianfang <[email protected]>
AuthorDate: Tue Jan 9 14:35:22 2024 +0800
video/fb: changed circbuf_write assert to warning
Signed-off-by: jianglianfang <[email protected]>
---
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 */