meson_display: meson_display printf crash [1/1]
PD#OTT-67617
Problem:
meson_display printf crash
Solution:
Modify print error format message
Verify:
Zapper
Change-Id: I034d6c859b9f25b43b541e992d5598e1b4c7071b
Signed-off-by: chen.wang1 <chen.wang1@amlogic.com>
diff --git a/display_framework/src/extension/display_settings/meson/meson_settings.c b/display_framework/src/extension/display_settings/meson/meson_settings.c
index ca9d71a..6cfa367 100644
--- a/display_framework/src/extension/display_settings/meson/meson_settings.c
+++ b/display_framework/src/extension/display_settings/meson/meson_settings.c
@@ -443,7 +443,7 @@
req = drmModeAtomicAlloc();
ret = meson_drm_getsupportedModesList(fd, &modes, &count, connType);
if (ret) {
- ERROR("%s %d get supported modeslist fail",ret, strerror(errno));
+ ERROR("%s %d get supported modeslist fail.", __FUNCTION__,__LINE__);
goto out;
}
const char *env= getenv("MESON_DISPLAY_MAX_MODE");
@@ -732,7 +732,7 @@
}
ret = meson_drm_setVideoZorder( fd, index, zorder, flag);
if (ret) {
- ERROR("%s %d set video zorder Fail",ret, strerror(errno));
+ ERROR("%s %d set video zorder fail.", __FUNCTION__,__LINE__);
}
meson_close_drm(fd);
return ret;